diff --git a/lua_scripts/MWPremium/mwpremium.lua b/lua_scripts/MWPremium/mwpremium.lua index 5acf763ec..7005181df 100644 --- a/lua_scripts/MWPremium/mwpremium.lua +++ b/lua_scripts/MWPremium/mwpremium.lua @@ -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 diff --git a/modules/mod-eluna/src/LuaEngine/methods/GlobalMethods.h b/modules/mod-eluna/src/LuaEngine/methods/GlobalMethods.h index ab148657b..401b6f04d 100644 --- a/modules/mod-eluna/src/LuaEngine/methods/GlobalMethods.h +++ b/modules/mod-eluna/src/LuaEngine/methods/GlobalMethods.h @@ -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 * }; * *