fix(Core/Unit): Set AI notification when setting/removing contested PvP flags. (#5076)

This commit is contained in:
Chero
2021-04-08 11:34:22 +02:00
committed by GitHub
parent 1dd7d75145
commit 143fad42c7
+2 -2
View File
@@ -16517,13 +16517,13 @@ void Unit::SetContestedPvP(Player* attackedPlayer)
player->AddUnitState(UNIT_STATE_ATTACK_PLAYER); player->AddUnitState(UNIT_STATE_ATTACK_PLAYER);
player->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP); player->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP);
// call MoveInLineOfSight for nearby contested guards // call MoveInLineOfSight for nearby contested guards
//UpdateObjectVisibility(); AddToNotify(NOTIFY_AI_RELOCATION);
} }
if (!HasUnitState(UNIT_STATE_ATTACK_PLAYER)) if (!HasUnitState(UNIT_STATE_ATTACK_PLAYER))
{ {
AddUnitState(UNIT_STATE_ATTACK_PLAYER); AddUnitState(UNIT_STATE_ATTACK_PLAYER);
// call MoveInLineOfSight for nearby contested guards // call MoveInLineOfSight for nearby contested guards
//UpdateObjectVisibility(); AddToNotify(NOTIFY_AI_RELOCATION);
} }
} }