From 783c12590ef30783744bd4e0bfdb2a32a1715fd2 Mon Sep 17 00:00:00 2001 From: KayenEQ Date: Fri, 8 Oct 2021 13:14:39 -0400 Subject: [PATCH] minor fix was not correct, was comparing negative to a positive --- zone/effects.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zone/effects.cpp b/zone/effects.cpp index 571abe6da..bdf230490 100644 --- a/zone/effects.cpp +++ b/zone/effects.cpp @@ -259,10 +259,11 @@ int32 Mob::GetExtraSpellAmt(uint16 spell_id, int32 extra_spell_amt, int32 base_s else extra_spell_amt = extra_spell_amt * total_cast_time / 7000; - if(extra_spell_amt*2 < base_spell_dmg) - return 0; + if (extra_spell_amt * 2 > abs(base_spell_dmg)) { + return 0; + } - return extra_spell_amt; + return extra_spell_amt; } int32 Mob::GetActSpellHealing(uint16 spell_id, int32 value, Mob* target) {