Fix issues with Mob::TryTriggerOnValueAmount

This commit is contained in:
Michael Cook (mackal) 2017-10-09 00:18:33 -04:00
parent 414cafdbed
commit 64d39134b9

View File

@ -3775,7 +3775,7 @@ void Mob::TryTriggerOnValueAmount(bool IsHP, bool IsMana, bool IsEndur, bool IsP
if ((base2 >= 500 && base2 <= 520) && GetHPRatio() < (base2 - 500)*5) if ((base2 >= 500 && base2 <= 520) && GetHPRatio() < (base2 - 500)*5)
use_spell = true; use_spell = true;
else if (base2 = 1004 && GetHPRatio() < 80) else if (base2 == 1004 && GetHPRatio() < 80)
use_spell = true; use_spell = true;
} }
@ -3783,12 +3783,12 @@ void Mob::TryTriggerOnValueAmount(bool IsHP, bool IsMana, bool IsEndur, bool IsP
if ( (base2 = 521 && GetManaRatio() < 20) || (base2 = 523 && GetManaRatio() < 40)) if ( (base2 = 521 && GetManaRatio() < 20) || (base2 = 523 && GetManaRatio() < 40))
use_spell = true; use_spell = true;
else if (base2 = 38311 && GetManaRatio() < 10) else if (base2 == 38311 && GetManaRatio() < 10)
use_spell = true; use_spell = true;
} }
else if (IsEndur){ else if (IsEndur){
if (base2 = 522 && GetEndurancePercent() < 40){ if (base2 == 522 && GetEndurancePercent() < 40){
use_spell = true; use_spell = true;
} }
} }