Skip to content

Commit

Permalink
Fixed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1arm committed Jul 4, 2022
1 parent 496a8e1 commit 136e4c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game/ChatCommands/GMCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ bool freezePlayer(Player* player, WorldObject* caster)
// Internal shortcut function to freeze a player
void unFreezePlayer(Player* player)
{
player->RemoveAurasDueToSpell(SPELL_GM_FREEZE);
player->RemoveAurasDueToSpell(SPELL_GM_FREEZE);
}


Expand All @@ -455,7 +455,7 @@ bool ChatHandler::HandleFreezePlayerCommand(char* args)
return false;
}
}

// 2. If arg is empty, gets the current selected target (returns current player if no unit selected)
if (!targetPlayer)
{
Expand Down Expand Up @@ -484,7 +484,7 @@ bool ChatHandler::HandleFreezePlayerCommand(char* args)
}

// Check if target can be freezed
if (targetPlayer->GetSession()->GetSecurity() > m_session->GetSecurity())
if (targetPlayer->GetSession()->GetSecurity() > m_session->GetSecurity())
{
PSendSysMessage(LANG_COMMAND_FREEZE_PLAYER_CANNOT_FREEZE_HIGHER_SECLEVEL, targetName);
SetSentErrorMessage(true);
Expand All @@ -495,7 +495,7 @@ bool ChatHandler::HandleFreezePlayerCommand(char* args)

// Notif GM
PSendSysMessage(LANG_COMMAND_FREEZE_PLAYER, targetName);

// Send message to player to prevent he has been frozen
ChatHandler(targetPlayer).SendSysMessage(LANG_COMMAND_FREEZE_PLAYER_YOU_HAVE_BEEN_FROZEN);

Expand Down

0 comments on commit 136e4c5

Please sign in to comment.