Skip to content

Commit

Permalink
fix: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 21, 2024
1 parent 5687d8e commit c7288c2
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 isBelowGameMaster = creature:getAccountType() < ACCOUNT_TYPE_GAMEMASTER
if isBelowGameMaster and creature:getLevel() < self.requiredLevel then
local isAccountNormal = creature:getAccountType() < ACCOUNT_TYPE_GAMEMASTER
if isAccountNormal 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 c7288c2

Please sign in to comment.