arcemu/arcemu — pull request #95 by neo-mat (2012-01-30 07:51:13+00:00)
Title: Spells Damage reduction

Damage reduction is now working properly, no flaws have been noticed yet.

Original patch by MesoX: https://gist.github.com/1703083 .

But it was lacking damage reduction for dots, so I had to move out damage reduction calculations from Unit::GetSpellDmgBonus to Object::SpellNonMeleeDamageLog
and add same into SpellAura::EventPeriodicDamage,
because EventPeriodicDamage is using virtual Object::DealDamage instead of SpellNonMeleeDamageLog as rest of spells do.