Skip to content

Commit

Permalink
Clean up spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Feb 13, 2025
1 parent 1aee05c commit 6265463
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/game/Object/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2487,23 +2487,21 @@ void Player::SetGameMaster(bool on)

GetHostileRefManager().setOnlineOfflineState(false);
CombatStopWithPets();

if (Pet* pet = GetPet())
{
if (m_ExtraFlags |= PLAYER_EXTRA_GM_ON)
pet->setFaction(35);
pet->GetHostileRefManager().setOnlineOfflineState(false);
}


}
else
{
m_ExtraFlags &= ~ PLAYER_EXTRA_GM_ON;
//setFactionForRace(getRace());
RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_0);
RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_GM);

if (Pet* pet = GetPet())
{
pet->setFaction(getFaction());
Expand Down

0 comments on commit 6265463

Please sign in to comment.