Unstable Affliction: Fix caster, bonus and penalty damage

Original Patch by N4rk0
Closes issue 739

--HG--
branch : trunk
This commit is contained in:
Spp
2010-05-04 21:54:13 +02:00
parent 7df73e7705
commit ce17866ef0
+2 -2
View File
@@ -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