Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void apply_type0(Fight.Fighter F, Fight fight)
- {
- while ((!stop) && (F.canPlay()))
- {
- stop = true;
- }
- }
- private static void apply_type1(Fight.Fighter F, Fight fight)
- {
- int noBoucle = 0;
- while ((!stop) && (F.canPlay()))
- {
- noBoucle++;
- if (noBoucle >= 12) stop = true;
- if (noBoucle > 15) return;
- int PDVPER = F.getPDV() * 100 / F.getPDVMAX();
- Fight.Fighter T = getNearestEnnemy(fight, F);
- Fight.Fighter T2 = getNearestFriend(fight, F);
- if (T == null) {
- return;
- }
- if (PDVPER > 15)
- {
- int attack = attackIfPossible(fight, F);
- if (attack == 0)
- continue;
- if (attack == 5) stop = true;
- if (moveToAttackIfPossible(fight, F))
- continue;
- if (buffIfPossible(fight, F, F))
- continue;
- if (HealIfPossible(fight, F, false))
- continue;
- if (buffIfPossible(fight, F, T2))
- continue;
- if (moveNearIfPossible(fight, F, T))
- continue;
- if (invocIfPossible(fight, F))
- continue;
- stop = true;
- }
- else
- {
- if (HealIfPossible(fight, F, true))
- continue;
- int attack = attackIfPossible(fight, F);
- if (attack == 0)
- continue;
- if (attack == 5) stop = true;
- if (buffIfPossible(fight, F, F))
- continue;
- if (HealIfPossible(fight, F, false))
- continue;
- if (buffIfPossible(fight, F, T2))
- continue;
- if (invocIfPossible(fight, F))
- continue;
- if (!moveFarIfPossible(fight, F))
- stop = true;
- }
- }
- }
- private static void apply_type2(Fight.Fighter F, Fight fight)
- {
- int noBoucle = 0;
- while ((!stop) && (F.canPlay()))
- {
- noBoucle++;
- if (noBoucle >= 12) stop = true;
- if (noBoucle > 15) return;
- Fight.Fighter T = getNearestFriend(fight, F);
- if (HealIfPossible(fight, F, false))
- continue;
- if (buffIfPossible(fight, F, T))
- continue;
- if (moveNearIfPossible(fight, F, T))
- continue;
- if (HealIfPossible(fight, F, true))
- continue;
- if (buffIfPossible(fight, F, F))
- continue;
- if (invocIfPossible(fight, F))
- continue;
- T = getNearestEnnemy(fight, F);
- int attack = attackIfPossible(fight, F);
- if (attack == 0)
- continue;
- if (attack == 5) stop = true;
- if (!moveFarIfPossible(fight, F))
- stop = true;
- }
- }
- private static void apply_type3(Fight.Fighter F, Fight fight)
- {
- int noBoucle = 0;
- while ((!stop) && (F.canPlay()))
- {
- noBoucle++;
- if (noBoucle >= 12) stop = true;
- if (noBoucle > 15) return;
- Fight.Fighter T = getNearestFriend(fight, F);
- if (moveNearIfPossible(fight, F, T))
- continue;
- if (HealIfPossible(fight, F, false))
- continue;
- if (buffIfPossible(fight, F, T))
- continue;
- if (HealIfPossible(fight, F, true))
- continue;
- if (invocIfPossible(fight, F))
- continue;
- if (buffIfPossible(fight, F, F))
- continue;
- stop = true;
- }
- }
- private static void apply_type4(Fight.Fighter F, Fight fight)
- {
- int noBoucle = 0;
- while ((!stop) && (F.canPlay()))
- {
- noBoucle++;
- if (noBoucle >= 12) stop = true;
- if (noBoucle > 15) return;
- Fight.Fighter T = getNearestEnnemy(fight, F);
- if (T == null) return;
- int attack = attackIfPossible(fight, F);
- if (attack == 0)
- continue;
- if (attack == 5) stop = true;
- if (moveFarIfPossible(fight, F))
- continue;
- if (HealIfPossible(fight, F, false))
- continue;
- if (buffIfPossible(fight, F, T))
- continue;
- if (HealIfPossible(fight, F, true))
- continue;
- if (invocIfPossible(fight, F))
- continue;
- if (buffIfPossible(fight, F, F))
- continue;
- stop = true;
- }
- }
- private static void apply_type5(Fight.Fighter F, Fight fight)
- {
- int noBoucle = 0;
- while ((!stop) && (F.canPlay()))
- {
- noBoucle++;
- if (noBoucle >= 12) stop = true;
- if (noBoucle > 15) return;
- Fight.Fighter T = getNearestEnnemy(fight, F);
- if (T == null) return;
- if (moveNearIfPossible(fight, F, T))
- continue;
- stop = true;
- }
- }
- private static void apply_type6(Fight.Fighter F, Fight fight)
- {
- int noBoucle = 0;
- while ((!stop) && (F.canPlay()))
- {
- noBoucle++;
- if (noBoucle >= 12) stop = true;
- if (noBoucle > 15) return;
- if (invocIfPossible(fight, F))
- continue;
- Fight.Fighter T = getNearestFriend(fight, F);
- if (HealIfPossible(fight, F, false))
- continue;
- if (buffIfPossible(fight, F, T))
- continue;
- if (buffIfPossible(fight, F, F))
- continue;
- if (HealIfPossible(fight, F, true))
- continue;
- int attack = attackIfPossible(fight, F);
- if (attack == 0)
- continue;
- if (attack == 5) stop = true;
- if (!moveFarIfPossible(fight, F))
- stop = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment