diff options
author | QAston <none@none> | 2009-04-06 17:07:58 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-04-06 17:07:58 +0200 |
commit | c6c084cc45e2bd321db8b57c3063545a6b45777a (patch) | |
tree | ff0e2bcb366a6975fb9579cb2f13b937a1e52998 /src/game/Unit.cpp | |
parent | dcd0b835aacde9197f9c71aea772927f23895212 (diff) |
*Fix area auras
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e85549a5cc2..8451bd0f270 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5624,7 +5624,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger // Leader of the Pack case 24932: { - if (triggerAmount == 0) + if (triggerAmount <= 0) return false; basepoints0 = triggerAmount * GetMaxHealth() / 100; target = this; @@ -13205,13 +13205,13 @@ void Unit::AddAura(uint32 spellId, Unit* target) Aura * Unit::AddAuraEffect(uint32 spellId, uint8 effIndex, Unit* caster) { SpellEntry const *spellInfo = sSpellStore.LookupEntry(spellId); - if(!spellInfo) + if(!spellInfo || !caster) return NULL; // can't do that for passive auras - they stack from same caster so there is no way to get exact aura which should get effect //assert (!IsPassiveSpell(spellInfo)); - Aura * aur = GetAura(spellId, GetGUID()); + Aura * aur = GetAura(spellId, caster->GetGUID()); if (aur) { |