A Lua fix of 3 spells. This might be usefull for servers which are using a repack, or aint familiar with compiling a core.
Code:SPELL = {} SPELL.OverkillSpells = {1784, 1785, 1786, 1787} SPELL.DragonBreathSpells = {31661, 33041, 33042, 33043, 42949, 42950} SPELL.ConeOfColdSpells = {120, 8492, 10159, 10160, 10161, 27087, 42930, 42931} function SPELL.OnCastStealth(event, player, spellid) for k, v in pairs(SPELL.OverkillSpells) do if (spellid == v) then if (player:HasAura(58426) == true) then player:CastSpell(58427) end end end end function SPELL.OnCastSpellDragonsBreath(event, player, spellid) for k, v in pairs(SPELL.DragonBreathSpells) do if (spellid == v) then player:CastSpell(37289) end end return 0 end function SPELL.OnCastSpellConeOfCold(event, player, spellid) for k, v in pairs(SPELL.ConeOfColdSpells) do if (spellid == v) then player:CastSpell(65023) end end return 0 end RegisterServerHook(10, "SPELL.OnCastStealth") RegisterServerHook(10, "SPELL.OnCastSpellDragonsBreath") RegisterServerHook(10, "SPELL.OnCastSpellConeOfCold")



LinkBack URL
About LinkBacks



Reply With Quote




Bookmarks