Code:
local spells = {
{spell = "Kura Flur", dist = 1},
{spell = "Kura Min Flur", dist = 1}
}
Module.New("", function()
local targetID = getSelfTargetID()
if (targetID <= 0) then
return
end
for i = 1, #spells do
if (Creature.DistanceFromSelf(targetID) <= spells[i].dist) then
if (Self.GetSpellCooldown(spells[i].spell) == 0) then
Self.Say(spells[i].spell)
end
end
end
end)