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)
|
||||
if not IsPremium(player) then return end
|
||||
|
||||
-- Get current channeled spell (SpellType 2)
|
||||
local current_spell = player:GetCurrentSpell(2)
|
||||
-- Get current generic spell (SpellType 1)
|
||||
local current_spell = player:GetCurrentSpell(1)
|
||||
|
||||
if current_spell ~= nil and current_spell:GetEntry() == HEARTHSTONE_SPELL_ID then
|
||||
player:ResetSpellCooldown(HEARTHSTONE_SPELL_ID)
|
||||
|
||||
Reference in New Issue
Block a user