mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Remove incorrect use of before_hit
This commit is contained in:
parent
614014a238
commit
1d40f20da0
@ -7624,7 +7624,6 @@ void Client::UpdatePersonalFaction(int32 char_id, int32 npc_value, int32 faction
|
|||||||
{
|
{
|
||||||
bool repair = false;
|
bool repair = false;
|
||||||
bool change = false;
|
bool change = false;
|
||||||
int32 faction_before_hit = *current_value - npc_value;
|
|
||||||
|
|
||||||
if (this->itembonuses.HeroicCHA)
|
if (this->itembonuses.HeroicCHA)
|
||||||
{
|
{
|
||||||
@ -7654,8 +7653,8 @@ void Client::UpdatePersonalFaction(int32 char_id, int32 npc_value, int32 faction
|
|||||||
repair = true;
|
repair = true;
|
||||||
}
|
}
|
||||||
else if ((m_pp.gm != 1) && (npc_value != 0) &&
|
else if ((m_pp.gm != 1) && (npc_value != 0) &&
|
||||||
((npc_value > 0 && faction_before_hit != this_faction_max) ||
|
((npc_value > 0 && *current_value != this_faction_max) ||
|
||||||
((npc_value < 0 && faction_before_hit != this_faction_min))))
|
((npc_value < 0 && *current_value != this_faction_min))))
|
||||||
change = true;
|
change = true;
|
||||||
|
|
||||||
if (change || repair)
|
if (change || repair)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user