Skip to content

Commit

Permalink
Allow players to cast spells while being muted (#2422)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro authored and dbjorkholm committed Jan 8, 2018
1 parent 66e8f4e commit 12cbf03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game.cpp
Expand Up @@ -3297,6 +3297,10 @@ void Game::playerSay(uint32_t playerId, uint16_t channelId, SpeakClasses type,

player->resetIdleTime();

if (playerSaySpell(player, type, text)) {
return;
}

uint32_t muteTime = player->isMuted();
if (muteTime > 0) {
std::ostringstream ss;
Expand All @@ -3305,10 +3309,6 @@ void Game::playerSay(uint32_t playerId, uint16_t channelId, SpeakClasses type,
return;
}

if (playerSaySpell(player, type, text)) {
return;
}

if (!text.empty() && text.front() == '/' && player->isAccessPlayer()) {
return;
}
Expand Down

0 comments on commit 12cbf03

Please sign in to comment.