diff options
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) { |