Bonjour, je n'arrive pas a faire fonctionner pile ou face .. quelqu'un aurait une idée ? Voici mon script :
function Main()
MoveAggressive()
SpellPileouFace()
fighter:passTurn()
end
function MoveAggressive()
if (not(fighter:isHandToHand())) then
fight:moveToWardCell(fight:getNearestEnemy())
end
end
function SpellPileouFace()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), "Pile ou Face")
fight:launchSpellInCell(fight:getNearestEnemy(), "Pile o Face")
end
end
function Main()
MoveAggressive()
SpellPileouFace()
fighter:passTurn()
end
function MoveAggressive()
if (not(fighter:isHandToHand())) then
fight:moveToWardCell(fight:getNearestEnemy())
end
end
function SpellPileouFace()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), "Pile ou Face")
fight:launchSpellInCell(fight:getNearestEnemy(), "Pile o Face")
end
end