Remove incorrect use of before_hit

This commit is contained in:
Paul Coene 2015-02-01 16:14:05 -05:00
parent 614014a238
commit 1d40f20da0

View File

@ -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)