local TargetSpells = {}
TargetSpells[1] = {SPELL = "Exori Max Frigo", CREATURE = {"Lizard High Guard", "Lizard Legionnaire", "Lizard Dragon Priest"}, DISTANCE = 3, ENABLED = false}
TargetSpells[2] = {SPELL = "Exori Gran Frigo", CREATURE = {"Dragon Lord", "Dragon", "Lizard Dragon Priest"}, DISTANCE = 3, ENABLED = true}
TargetSpells[3] = {SPELL = "Exori Frigo", CREATURE = {"Dragon Lord", "Dragon", "Lizard Dragon Priest"}, DISTANCE = 3, ENABLED = true}
--_____________DON'T EDIT BELOW UNLESS YOU KNOW WHAT YOU'RE DOING_____________
Module.New('Spell Caster by PromB', function(module)
for _, V in ipairs(TargetSpells) do
local target = Creature.GetByID(Self.TargetID())
if (V.ENABLED) then
if (V.CREATURE and table.find(V.CREATURE, target:Name(), false)) and (target:isOnScreen() and target:isVisible() and target:isAlive()) then
if (target:DistanceFromSelf() <= V.DISTANCE) and Creature.New(V.CREATURE) then
if Self.CanCastSpell(V.SPELL) then
Self.Cast(V.SPELL)
module:Delay(400)
end
end
end
end
end
end)
Zakładki