[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
@@ -2989,7 +2989,7 @@ void Bot::AI_Process()
return;
}
if (!(m_PlayerState & static_cast<uint32>(PlayerState::Aggressive))) {
if (!(GetPlayerState() & static_cast<uint32>(PlayerState::Aggressive))) {
SendAddPlayerState(PlayerState::Aggressive);
}
@@ -3595,7 +3595,7 @@ void Bot::AI_Process()
GetPet()->SetTarget(nullptr);
}
if (m_PlayerState & static_cast<uint32>(PlayerState::Aggressive)) {
if (GetPlayerState() & static_cast<uint32>(PlayerState::Aggressive)) {
SendRemovePlayerState(PlayerState::Aggressive);
}