FlatItemExtraSpellAmt Custom Rule Addition

Added FlatItemExtraSpellAmt rule (boolean) to allow SpellDmg on items to
be added as raw damage versus scaled.
This commit is contained in:
hateborne
2016-02-10 16:51:58 -05:00
parent 306586fa7e
commit cdd56ec0e1
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -225,6 +225,9 @@ int32 Mob::GetActDoTDamage(uint16 spell_id, int32 value, Mob* target) {
int32 Mob::GetExtraSpellAmt(uint16 spell_id, int32 extra_spell_amt, int32 base_spell_dmg)
{
if (RuleB(Spells, FlatItemExtraSpellAmt))
return extra_spell_amt;
int total_cast_time = 0;
if (spells[spell_id].recast_time >= spells[spell_id].recovery_time)