From 5687d8edd8e96e65703d547eaee78de5bd7a6279 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Wed, 20 Nov 2024 18:27:39 -0300 Subject: [PATCH] fix: rename --- data/libs/functions/boss_lever.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/libs/functions/boss_lever.lua b/data/libs/functions/boss_lever.lua index ca3c5b1efec..45c75594ac9 100644 --- a/data/libs/functions/boss_lever.lua +++ b/data/libs/functions/boss_lever.lua @@ -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)