- Joined
- Jun 20, 2015
- Messages
- 183
- Thread Author
- #1
Code:
for(Slot m : ActionBar.getFilledSlots()){
if(adrenPercent<100){
if(Globals.stringInArray(m.getName(), Threshholds)){
System.out.println("Found thresh");
if(!m.isCoolingDown() || m.isReady()){
Keyboard.typeKey(m.getKeyBind());
System.out.println("Activating thresh");
//m.activate(true);
return;
}
}
} else {
if(Globals.stringInArray(m.getName(), Ultimates)){
System.out.println("Found ult");
if(!m.isCoolingDown() || m.isReady()){
Keyboard.typeKey(m.getKeyBind());
System.out.println("Activating ult");
//m.activate(true);
return;
}
}
}
}
The slot.activate() method doesn't work either, but getKeyBind() works. But it will find the ability and never activate. @Vaped