fix(premium): fix OnBeforeTeleport arguments number

This commit is contained in:
gasaichandesu
2026-08-22 20:18:17 +04:00
parent deff67efeb
commit 72cede7878
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ local function OnLogout(event, player)
squires_table[player:GetGUID()] = nil
end
local function OnBeforeTeleport(player, mapid, x, y, z, orientation, options, target)
local function OnBeforeTeleport(event, player, mapid, x, y, z, orientation, options, target)
if not IsPremium(player) then return end
if player:FindCurrentSpellBySpellId(HEARTHSTONE_SPELL_ID) then
@@ -785,6 +785,7 @@ namespace LuaGlobalFunctions
* PLAYER_EVENT_ON_AURA_APPLY = 64, // (event, player, aura)
* PLAYER_EVENT_ON_HEAL = 65, // (event, player, target, heal) - Can return new heal amount
* PLAYER_EVENT_ON_DAMAGE = 66, // (event, player, target, damage) - Can return new damage amount
* PLAYER_EVENT_ON_BEFORE_TELEPORT = 67, // (event, player, target, damage) - Can return new damage amount
* };
* </pre>
*