Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void apply_typePerco(Fight.Fighter F, Fight fight)
- {
- try
- {
- int noBoucle = 0;
- do
- {
- noBoucle++;
- if (noBoucle >= 12) stop = true;
- if (noBoucle > 15) return;
- Fight.Fighter T = getNearestEnnemy(fight, F);
- if (T == null) return;
- int attack = attackIfPossiblePerco(fight, F);
- if (attack != 0)
- {
- if (attack == 5) stop = true;
- if (!moveFarIfPossible(fight, F))
- {
- if (!HealIfPossiblePerco(fight, F, false))
- {
- if (!buffIfPossiblePerco(fight, F, T))
- {
- if (!HealIfPossiblePerco(fight, F, true))
- {
- if (!buffIfPossiblePerco(fight, F, F))
- {
- stop = true;
- }
- }
- }
- }
- }
- }
- if (stop) break;
- }while (F.canPlay());
- }
- catch (Exception e)
- {
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment