diff options
Diffstat (limited to 'src/server/game/Combat/HostileRefManager.cpp')
-rwxr-xr-x | src/server/game/Combat/HostileRefManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Combat/HostileRefManager.cpp b/src/server/game/Combat/HostileRefManager.cpp index 91ba2d69037..f318e9b462b 100755 --- a/src/server/game/Combat/HostileRefManager.cpp +++ b/src/server/game/Combat/HostileRefManager.cpp @@ -21,6 +21,7 @@ #include "Unit.h" #include "DBCStructure.h" #include "SpellMgr.h" +#include "SpellInfo.h" HostileRefManager::~HostileRefManager() { @@ -32,7 +33,7 @@ HostileRefManager::~HostileRefManager() // The pVictim is hated than by them as well // use for buffs and healing threat functionality -void HostileRefManager::threatAssist(Unit *pVictim, float fThreat, SpellEntry const *pThreatSpell, bool pSingleTarget) +void HostileRefManager::threatAssist(Unit *pVictim, float fThreat, SpellInfo const *pThreatSpell, bool pSingleTarget) { HostileReference* ref; @@ -40,7 +41,7 @@ void HostileRefManager::threatAssist(Unit *pVictim, float fThreat, SpellEntry co ref = getFirst(); while (ref != NULL) { - float threat = ThreatCalcHelper::calcThreat(pVictim, iOwner, fThreat, (pThreatSpell ? GetSpellSchoolMask(pThreatSpell) : SPELL_SCHOOL_MASK_NORMAL), pThreatSpell); + float threat = ThreatCalcHelper::calcThreat(pVictim, iOwner, fThreat, (pThreatSpell ? pThreatSpell->GetSchoolMask() : SPELL_SCHOOL_MASK_NORMAL), pThreatSpell); if (pVictim == getOwner()) ref->addThreat(threat / size); // It is faster to modify the threat durectly if possible else |