Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 20, 2024
1 parent e4d519c commit 5687d8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/libs/functions/boss_lever.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ function BossLever:onUse(player)
return true
end

local isAccountGod = creature:getAccountType() < ACCOUNT_TYPE_GAMEMASTER
if not isAccountGod and creature:getLevel() < self.requiredLevel then
local isBelowGameMaster = creature:getAccountType() < ACCOUNT_TYPE_GAMEMASTER
if isBelowGameMaster and creature:getLevel() < self.requiredLevel then
local message = "All players need to be level " .. self.requiredLevel .. " or higher."
creature:sendTextMessage(MESSAGE_EVENT_ADVANCE, message)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, message)
Expand Down

0 comments on commit 5687d8e

Please sign in to comment.