From 1d40f20da007ae37d8c068fa290b0b9883618ba9 Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Sun, 1 Feb 2015 16:14:05 -0500 Subject: [PATCH] Remove incorrect use of before_hit --- zone/client.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zone/client.cpp b/zone/client.cpp index 9d159ce77..5cc5ae309 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -7624,7 +7624,6 @@ void Client::UpdatePersonalFaction(int32 char_id, int32 npc_value, int32 faction { bool repair = false; bool change = false; - int32 faction_before_hit = *current_value - npc_value; if (this->itembonuses.HeroicCHA) { @@ -7654,8 +7653,8 @@ void Client::UpdatePersonalFaction(int32 char_id, int32 npc_value, int32 faction repair = true; } else if ((m_pp.gm != 1) && (npc_value != 0) && - ((npc_value > 0 && faction_before_hit != this_faction_max) || - ((npc_value < 0 && faction_before_hit != this_faction_min)))) + ((npc_value > 0 && *current_value != this_faction_max) || + ((npc_value < 0 && *current_value != this_faction_min)))) change = true; if (change || repair)