could any of you help me with that action?? It is not casting any spell


local firstspell = "exori"
local secondspell = "exori gran"
local firstspellcount = 2
local secondspellcount = 3
local Monsters = {"Sea Serpent", "Young Sea Serpent"} -- monstros a serem considerados

if paround() == 0 and lasttimeplayeronscreen() > 10000 then
if maround(1, false, unpack(Monsters)) >= firstspellcount and cancast(firstspell) then
cast(firstspell)
wait(8000)
end

if paround() == 0 and lasttimeplayeronscreen() > 10000 then
if maround(1, false, unpack(Monsters)) >= secondspellcount and cancast(secondspell) then
cast(secondspell)
wait(8000)
end