*Calculate spell damage bonus when spell is casted rather than when spell hits target.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-04 10:42:53 -06:00
parent e19482bcb4
commit 73e4623119
4 changed files with 35 additions and 19 deletions
+2 -1
View File
@@ -5875,7 +5875,8 @@ void Aura::PeriodicTick()
SpellEntry const* spellProto = GetSpellProto();
//maybe has to be sent different to client, but not by SMSG_PERIODICAURALOG
SpellNonMeleeDamage damageInfo(pCaster, m_target, spellProto->Id, spellProto->SchoolMask);
pCaster->CalculateSpellDamage(&damageInfo, gain, spellProto);
//no SpellDamageBonus for burn mana
pCaster->CalculateSpellDamageTaken(&damageInfo, gain, spellProto);
pCaster->SendSpellNonMeleeDamageLog(&damageInfo);
// Set trigger flag