diff options
author | silinoron <none@none> | 2010-08-19 10:37:20 -0700 |
---|---|---|
committer | silinoron <none@none> | 2010-08-19 10:37:20 -0700 |
commit | d58e19385fef22123fe856861c21a78d12dc61f9 (patch) | |
tree | 1a3925c8c98244fc0a8ae0906d9fba56c2fc2c91 /src | |
parent | 5a237a8ea9eca74674a95f0a3da2f0e3a8a41b4a (diff) |
Fix combustion crits with area of effect spells - patch by moriquendu.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 311ea7bacd0..2cc6ec30244 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7980,7 +7980,11 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura, return true; // charge counting (will removed) } - this->CastSpell(this, 28682, true); + // This function can be called twice during one spell hit (Area of Effect spells) + // Make sure 28682 wasn't already removed by previous call + if (HasAura(28682)) + this->CastSpell(this, 28682, true); + return false; // ordinary chrages will be removed during crit chance computations. } // Empowered Fire |