slt tout j ai essayé de faire une ia pour sacri agressive lance bain de sang deux fois et hemorragie une fois avec flatyia sauf qu en la testant mon perso ne lance que hemorragie et pas double bain de sang et fonce pas vers le mob voila l ia
DofusClass="11"
function Main()
MoveAggressive()
SpellBain_de_SangEnnemi12()
SpellHemorragieEnnemi11()
fighter:passTurn()
end
function MoveAggressive()
if (not(fighter:isHandToHand())) then
fight:moveToWardCell(fight:getNearestEnemy())
end
end
function SpellBain_de_SangEnnemi12()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), "Bain de Sang")
fight:launchSpellInCell(fight:getNearestEnemy(), "Bain de Sang")
end
end
function SpellHemorragieEnnemi11()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), "Hemorragie")
end
end
DofusClass="11"
function Main()
MoveAggressive()
SpellBain_de_SangEnnemi12()
SpellHemorragieEnnemi11()
fighter:passTurn()
end
function MoveAggressive()
if (not(fighter:isHandToHand())) then
fight:moveToWardCell(fight:getNearestEnemy())
end
end
function SpellBain_de_SangEnnemi12()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), "Bain de Sang")
fight:launchSpellInCell(fight:getNearestEnemy(), "Bain de Sang")
end
end
function SpellHemorragieEnnemi11()
if (fight:getCurrentTour() == 1 or fight:getCurrentTour() % 1 == 0) then
fight:launchSpellInCell(fight:getNearestEnemy(), "Hemorragie")
end
end