Merge pull request #1594 from KayenEQ/fixExtraSpellAmt

[Spells] Minor fix to Item Extra Spell Damage Amt formula
This commit is contained in:
KayenEQ 2021-10-08 18:00:46 -04:00 committed by GitHub
commit a9e23cf83a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,10 +259,11 @@ int32 Mob::GetExtraSpellAmt(uint16 spell_id, int32 extra_spell_amt, int32 base_s
else else
extra_spell_amt = extra_spell_amt * total_cast_time / 7000; extra_spell_amt = extra_spell_amt * total_cast_time / 7000;
if(extra_spell_amt*2 < base_spell_dmg) if (extra_spell_amt * 2 > abs(base_spell_dmg)) {
return 0; return 0;
}
return extra_spell_amt; return extra_spell_amt;
} }
int32 Mob::GetActSpellHealing(uint16 spell_id, int32 value, Mob* target) { int32 Mob::GetActSpellHealing(uint16 spell_id, int32 value, Mob* target) {