mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 16:28:28 +00:00
[Cleanup] Utilize GetPlayerState() in mob methods (#3066)
# Notes - This method was unused, make use of it.
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user