Merge pull request #5 from RedSparr0w/animation-fix

Fix animation detection
This commit is contained in:
Daniel Ginovker
2019-12-04 21:19:55 -05:00
committed by GitHub
5 changed files with 4 additions and 1 deletions
+3
View File
@@ -12,6 +12,9 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: org.parabot:client:2.8.1" level="project" />
<orderEntry type="library" name="Maven: org.parabot:internal-api:1.53.1" level="project" />
<orderEntry type="library" name="Maven: org.parabot:317-api-minified:1.21.5" level="project" />
<orderEntry type="library" name="Maven: org.parabot:client:2.8.1" level="project" />
<orderEntry type="library" name="Maven: org.ow2.asm:asm-all:5.0.4" level="project" />
<orderEntry type="library" name="Maven: com.googlecode.json-simple:json-simple:1.1.1" level="project" />
<orderEntry type="library" name="Maven: org.parabot:internal-api:1.53.1" level="project" />
@@ -40,7 +40,7 @@ public class LogicHandler {
return Players.getMyPlayer().isInCombat();
case "Within x Tiles of Coords":
return new Tile(a.getParam(1), a.getParam(2)).distanceTo() < a.getParam(0);
case "Player Animation ID":
case "Detect Animation ID":
for (int i = 0; i <= a.getParam(1); i+=5) //Allow multiple checks for when the animation is happening
{
Time.sleep(5);
Binary file not shown.