fix(premium): fix OnBeforeTeleport arguments number
This commit is contained in:
@@ -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>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user