diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 54d0b47dbe5..865c95d4d19 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -2491,7 +2491,7 @@ uint32 Unit::CalculateDamage(WeaponAttackType attType, bool normalized, bool add float Unit::CalculateLevelPenalty(SpellEntry const* spellProto) const { - if (spellProto->spellLevel <= 0) + if (spellProto->spellLevel <= 0 || spellProto->spellLevel >= spellProto->maxLevel) return 1.0f; float LvlPenalty = 0.0f; @@ -4033,7 +4033,7 @@ void Unit::RemoveAurasDueToSpellByDispel(uint32 spellId, uint64 casterGUID, Unit { int32 damage = aurEff->GetAmount()*9; // backfire damage and silence - dispeller->CastCustomSpell(dispeller, 31117, &damage, NULL, NULL, true, NULL, NULL, GetGUID()); + dispeller->CastCustomSpell(dispeller, 31117, &damage, NULL, NULL, true, NULL, NULL, aura->GetCasterGUID()); } } // Flame Shock |