j'ai eu besoin du meme truc pour un marteau voila ce que j'ai fait :
function Main()
MoveAggressive()
cac()
fighter:passTurn()
end
function MoveAggressive()
if (not(fighter:isHandToHand())) then
fight:moveToWardCell(fight:getNearestEnemy())
end
end
function cac()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), 0)
end
end