[Cleanup] Utilize GetPlayerState() in mob methods (#3066)

# Notes
- This method was unused, make use of it.
This commit is contained in:
Alex King
2023-03-16 20:23:34 -04:00
committed by GitHub
parent cc6bcf3295
commit 7961d7afa8
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1473,7 +1473,7 @@ void Merc::AI_Process() {
return;
}
if (!(m_PlayerState & static_cast<uint32>(PlayerState::Aggressive)))
if (!(GetPlayerState() & static_cast<uint32>(PlayerState::Aggressive)))
SendAddPlayerState(PlayerState::Aggressive);
bool atCombatRange = false;
@@ -1716,7 +1716,7 @@ void Merc::AI_Process() {
confidence_timer.Disable();
_check_confidence = false;
if (m_PlayerState & static_cast<uint32>(PlayerState::Aggressive))
if (GetPlayerState() & static_cast<uint32>(PlayerState::Aggressive))
SendRemovePlayerState(PlayerState::Aggressive);
if(!check_target_timer.Enabled())