From 1e1de3a48af1aef020e7f09a2d0f3072ea986a59 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 20 Mar 2017 19:49:35 -0400 Subject: [PATCH] Fix error --- zone/special_attacks.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zone/special_attacks.cpp b/zone/special_attacks.cpp index b982e3e30..074d707a8 100644 --- a/zone/special_attacks.cpp +++ b/zone/special_attacks.cpp @@ -1900,7 +1900,6 @@ void Mob::Taunt(NPC *who, bool always_succeed, int chance_bonus, bool FromSpell, if (chance_bonus) { Success = zone->random.Roll(chance_bonus); } else { - int32 newhate = 0; float tauntchance = 50.0f; if (always_succeed) @@ -1938,7 +1937,7 @@ void Mob::Taunt(NPC *who, bool always_succeed, int chance_bonus, bool FromSpell, if (Success) { if (hate_top && hate_top != this) { - newhate = (who->GetNPCHate(hate_top) - who->GetNPCHate(this)) + 1 + bonus_hate; + int newhate = (who->GetNPCHate(hate_top) - who->GetNPCHate(this)) + 1 + bonus_hate; who->CastToNPC()->AddToHateList(this, newhate); Success = true; } else {