fix(premium): fix incorrect spell type for hearthstone

This commit is contained in:
gasaichandesu
2026-08-22 21:39:01 +04:00
parent 451d783994
commit 442c708e85
+2 -2
View File
@@ -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)