Try this:
Code:-- name, distance format local spells = { ["Kura Flur"] = 1, ["Kura Min Flur"] = 1 } Module.New("", function() local targetID = getSelfTargetID() if (targetID <= 0) then return end for spell, dist in pairs(spells) do if (Creature.DistanceFromSelf(targetID) <= dist) then if (Self.GetSpellCooldown(spell) == 0) then Self.Say(spell) end end end end)