local function SummonPet()
local petspell = 'Spirit of Panthea'
if mq.TLO.Me.Pet() == 'NO PET'
and not mq.TLO.Me.Invis()
and not mq.TLO.Me.Casting()
and mq.TLO.Me.CurrentMana() > mq.TLO.Spell(petspell).Mana()
then
mq.cmdf('/cast %s', petspell)
mq.delay(200)
while mq.TLO.Me.Casting() do mq.delay(500) end
end
end