mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 08:26:36 +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
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user