eluna-scripts-ornfelt/lua/DinklePack_Lua/CustomContent/MiscTools/ColossusSmash.lua
2024-09-23 07:59:23 +02:00

22 lines
596 B
Lua

local Bladestorm = {}
Bladestorm.SPELL_IDS = {
BLADESTORM = 46924,
TO_LEARN = 994999,
TO_UNLEARN = 994999
}
function Bladestorm.OnLearnSpell(event, player, spellId)
if spellId == Bladestorm.SPELL_IDS.BLADESTORM then
player:LearnSpell(Bladestorm.SPELL_IDS.TO_LEARN)
end
end
function Bladestorm.OnTalentsReset(event, player, noCost)
if player:HasSpell(Bladestorm.SPELL_IDS.TO_UNLEARN) then
player:RemoveSpell(Bladestorm.SPELL_IDS.TO_UNLEARN)
end
end
RegisterPlayerEvent(44, Bladestorm.OnLearnSpell)
RegisterPlayerEvent(17, Bladestorm.OnTalentsReset)