diff options
author | megamage <none@none> | 2009-07-12 18:06:19 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-12 18:06:19 +0800 |
commit | 8fedc832e8dc2655c7a6ef357c675233a4537e07 (patch) | |
tree | 2ba7796a8154621052833880a77e59bf093068a7 /src/game/ThreatManager.cpp | |
parent | 721782b259ccd9b0ad0d78112164ff5a95318a2f (diff) |
[8163] Fixed typo and wrong check affecting threat calculation. Author: SeT
--HG--
branch : trunk
Diffstat (limited to 'src/game/ThreatManager.cpp')
-rw-r--r-- | src/game/ThreatManager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/ThreatManager.cpp b/src/game/ThreatManager.cpp index 8cf3a76d0fe..60c46c2307d 100644 --- a/src/game/ThreatManager.cpp +++ b/src/game/ThreatManager.cpp @@ -34,11 +34,9 @@ // The pHatingUnit is not used yet float ThreatCalcHelper::calcThreat(Unit* pHatedUnit, Unit* pHatingUnit, float pThreat, SpellSchoolMask schoolMask, SpellEntry const *pThreatSpell) { - if(pThreatSpell) - { - if( Player* modOwner = pHatedUnit->GetSpellModOwner() ) + if (pThreatSpell) + if (Player* modOwner = pHatedUnit->GetSpellModOwner()) modOwner->ApplySpellMod(pThreatSpell->Id, SPELLMOD_THREAT, pThreat); - } float threat = pHatedUnit->ApplyTotalThreatModifier(pThreat, schoolMask); return threat; |