From d6e9f3bdc9b1264d6ef5438db2a2381159d8ad2c Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Mon, 29 May 2023 20:44:26 -0500 Subject: [PATCH] Test --- sig/App.java | 87 +++++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/sig/App.java b/sig/App.java index 46476ab..9880b45 100644 --- a/sig/App.java +++ b/sig/App.java @@ -231,6 +231,9 @@ class Server long lastFrame=System.currentTimeMillis(); void Heal(Target target){ + if (target==Target.AYA){ + allowedToAetherflow=true; + } if (aetherflowStacks>0){ PressKey(KeyEvent.VK_C); aetherflowStacks--; @@ -343,57 +346,57 @@ class Server nextActionTimer=1000; break fightLoop; } - } - if (allowedToAetherflow&&aetherflowTimer==0){ - PressKeyWithModifier(KeyEvent.VK_ALT, KeyEvent.VK_2); - nextActionTimer=1000; - aetherflowStacks=3; - break fightLoop; - } - float ayaHealth=GetAyaHealth(); - float mythraHealth=GetMythraHealth(); - if (ayaHealth<0.4){ - PressKey(KeyEvent.VK_F2); - Heal(Target.AYA); - break fightLoop; - } - if (ayaHealth<0.6){ - if (whisperingDawnTimer==0&&feyIlluminationTimer<60000){ - PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_C); - whisperingDawnTimer=60000; + if (allowedToAetherflow&&aetherflowTimer==0){ + PressKeyWithModifier(KeyEvent.VK_ALT, KeyEvent.VK_2); nextActionTimer=1000; + aetherflowStacks=3; break fightLoop; - } else - if (feyIlluminationTimer==0&&whisperingDawnTimer<30000){ - PressKey(KeyEvent.VK_X); - feyIlluminationTimer=120000; - nextActionTimer=1000; + } + float ayaHealth=GetAyaHealth(); + float mythraHealth=GetMythraHealth(); + if (ayaHealth<0.4){ + PressKey(KeyEvent.VK_F2); + Heal(Target.AYA); break fightLoop; } - } - if (mythraHealth<0.4){ - PressKey(KeyEvent.VK_F1); - Heal(Target.MYTHRA); - break fightLoop; - } - //Looks like we're attacking. - PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_8); - float targetHealth=GetTargetHealth(); - if (!MultipleTargets()){ - if (targetHealth>50&&bioTimer==0){ - PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_2); - bioTimer=30000; - nextActionTimer=2500; + if (ayaHealth<0.6){ + if (whisperingDawnTimer==0&&feyIlluminationTimer<60000){ + PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_C); + whisperingDawnTimer=60000; + nextActionTimer=1000; + break fightLoop; + } else + if (feyIlluminationTimer==0&&whisperingDawnTimer<30000){ + PressKey(KeyEvent.VK_X); + feyIlluminationTimer=120000; + nextActionTimer=1000; + break fightLoop; + } + } + if (mythraHealth<0.4){ + PressKey(KeyEvent.VK_F1); + Heal(Target.MYTHRA); break fightLoop; + } + //Looks like we're attacking. + PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_8); + float targetHealth=GetTargetHealth(); + if (!MultipleTargets()){ + if (targetHealth>50&&bioTimer==0){ + PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_2); + bioTimer=30000; + nextActionTimer=2500; + break fightLoop; + } else { + PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_1); + nextActionTimer=2500; + break fightLoop; + } } else { - PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_1); + PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_Z); nextActionTimer=2500; break fightLoop; } - } else { - PressKeyWithModifier(KeyEvent.VK_CONTROL, KeyEvent.VK_Z); - nextActionTimer=2500; - break fightLoop; } } break fightLoop;