fix(premium): fix incorrect spell type for hearthstone
This commit is contained in:
@@ -187,8 +187,8 @@ end
|
|||||||
local function OnBeforeTeleport(event, 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 not IsPremium(player) then return end
|
||||||
|
|
||||||
-- Get current channeled spell (SpellType 2)
|
-- Get current generic spell (SpellType 1)
|
||||||
local current_spell = player:GetCurrentSpell(2)
|
local current_spell = player:GetCurrentSpell(1)
|
||||||
|
|
||||||
if current_spell ~= nil and current_spell:GetEntry() == HEARTHSTONE_SPELL_ID then
|
if current_spell ~= nil and current_spell:GetEntry() == HEARTHSTONE_SPELL_ID then
|
||||||
player:ResetSpellCooldown(HEARTHSTONE_SPELL_ID)
|
player:ResetSpellCooldown(HEARTHSTONE_SPELL_ID)
|
||||||
|
|||||||
Reference in New Issue
Block a user