Skip to content

Commit

Permalink
Check ghost mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Apr 2, 2024
1 parent b008c1e commit df5576c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions data/scripts/talkactions/gm/afk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ function afk.onSay(player, words, param)
end

table.insert(playersAFKs, { id = id, position = position })
if player:isInGhostMode() then
player:setGhostMode(false)
end
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are now AFK!")
position:sendMagicEffect(CONST_ME_REDSMOKE)
local spectators = Game.getSpectators(position, false, true, 8, 8, 8, 8)
Expand Down

0 comments on commit df5576c

Please sign in to comment.