From 64d39134b97b4900b50c1129969b493c3390550c Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 9 Oct 2017 00:18:33 -0400 Subject: [PATCH] Fix issues with Mob::TryTriggerOnValueAmount --- zone/mob.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index 905ce2c4b..efb2922f0 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -3775,7 +3775,7 @@ void Mob::TryTriggerOnValueAmount(bool IsHP, bool IsMana, bool IsEndur, bool IsP if ((base2 >= 500 && base2 <= 520) && GetHPRatio() < (base2 - 500)*5) use_spell = true; - else if (base2 = 1004 && GetHPRatio() < 80) + else if (base2 == 1004 && GetHPRatio() < 80) 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)) use_spell = true; - else if (base2 = 38311 && GetManaRatio() < 10) + else if (base2 == 38311 && GetManaRatio() < 10) use_spell = true; } else if (IsEndur){ - if (base2 = 522 && GetEndurancePercent() < 40){ + if (base2 == 522 && GetEndurancePercent() < 40){ use_spell = true; } }