mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10157] Fix makefile and make gcc happy.
This commit is contained in:
parent
a32b3063a2
commit
0096bf6ebb
3 changed files with 9 additions and 8 deletions
|
|
@ -271,6 +271,7 @@ libmangosgame_a_SOURCES = \
|
||||||
Traveller.h \
|
Traveller.h \
|
||||||
Unit.cpp \
|
Unit.cpp \
|
||||||
Unit.h \
|
Unit.h \
|
||||||
|
UnitAuraProcHandler.cpp \
|
||||||
UnitEvents.h \
|
UnitEvents.h \
|
||||||
UpdateData.cpp \
|
UpdateData.cpp \
|
||||||
UpdateData.h \
|
UpdateData.h \
|
||||||
|
|
|
||||||
|
|
@ -3188,7 +3188,7 @@ void Spell::EffectHeal(SpellEffectIndex /*eff_idx*/)
|
||||||
|
|
||||||
addhealth += tickheal * tickcount;
|
addhealth += tickheal * tickcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chain Healing
|
// Chain Healing
|
||||||
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000000100))
|
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_SHAMAN && m_spellInfo->SpellFamilyFlags & UI64LIT(0x0000000000000100))
|
||||||
{
|
{
|
||||||
|
|
@ -3221,7 +3221,7 @@ void Spell::EffectHealPct(SpellEffectIndex /*eff_idx*/)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 addhealth = unitTarget->GetMaxHealth() * damage / 100;
|
uint32 addhealth = unitTarget->GetMaxHealth() * damage / 100;
|
||||||
|
|
||||||
addhealth = caster->SpellHealingBonusDone(unitTarget, m_spellInfo, addhealth, HEAL);
|
addhealth = caster->SpellHealingBonusDone(unitTarget, m_spellInfo, addhealth, HEAL);
|
||||||
addhealth = unitTarget->SpellHealingBonusTaken(caster, m_spellInfo, addhealth, HEAL);
|
addhealth = unitTarget->SpellHealingBonusTaken(caster, m_spellInfo, addhealth, HEAL);
|
||||||
|
|
||||||
|
|
@ -4043,8 +4043,8 @@ void Spell::EffectDispel(SpellEffectIndex eff_idx)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Fill possible dispell list
|
// Fill possible dispell list
|
||||||
std::list <std::pair<SpellAuraHolder* ,uint32>> dispel_list;
|
std::list <std::pair<SpellAuraHolder* ,uint32> > dispel_list;
|
||||||
|
|
||||||
// Create dispel mask by dispel type
|
// Create dispel mask by dispel type
|
||||||
uint32 dispel_type = m_spellInfo->EffectMiscValue[eff_idx];
|
uint32 dispel_type = m_spellInfo->EffectMiscValue[eff_idx];
|
||||||
uint32 dispelMask = GetDispellMask( DispelType(dispel_type) );
|
uint32 dispelMask = GetDispellMask( DispelType(dispel_type) );
|
||||||
|
|
@ -4084,7 +4084,7 @@ void Spell::EffectDispel(SpellEffectIndex eff_idx)
|
||||||
for (int32 count=0; count < damage && !dispel_list.empty(); ++count)
|
for (int32 count=0; count < damage && !dispel_list.empty(); ++count)
|
||||||
{
|
{
|
||||||
// Random select buff for dispel
|
// Random select buff for dispel
|
||||||
std::list<std::pair<SpellAuraHolder* ,uint32>>::iterator dispel_itr = dispel_list.begin();
|
std::list<std::pair<SpellAuraHolder* ,uint32> >::iterator dispel_itr = dispel_list.begin();
|
||||||
std::advance(dispel_itr,urand(0, dispel_list.size()-1));
|
std::advance(dispel_itr,urand(0, dispel_list.size()-1));
|
||||||
|
|
||||||
SpellAuraHolder *holder = dispel_itr->first;
|
SpellAuraHolder *holder = dispel_itr->first;
|
||||||
|
|
@ -6266,7 +6266,7 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
holder->RefreshHolder();
|
holder->RefreshHolder();
|
||||||
|
|
||||||
Aura *aura = holder->GetAuraByEffectIndex(EFFECT_INDEX_0);
|
Aura *aura = holder->GetAuraByEffectIndex(EFFECT_INDEX_0);
|
||||||
|
|
||||||
if (!aura)
|
if (!aura)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
@ -7665,7 +7665,7 @@ void Spell::EffectStealBeneficialBuff(SpellEffectIndex eff_idx)
|
||||||
|
|
||||||
if(!unitTarget || unitTarget==m_caster) // can't steal from self
|
if(!unitTarget || unitTarget==m_caster) // can't steal from self
|
||||||
return;
|
return;
|
||||||
|
|
||||||
std::vector <SpellAuraHolder *> steal_list;
|
std::vector <SpellAuraHolder *> steal_list;
|
||||||
// Create dispel mask by dispel type
|
// Create dispel mask by dispel type
|
||||||
uint32 dispelMask = GetDispellMask( DispelType(m_spellInfo->EffectMiscValue[eff_idx]) );
|
uint32 dispelMask = GetDispellMask( DispelType(m_spellInfo->EffectMiscValue[eff_idx]) );
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10156"
|
#define REVISION_NR "10157"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue