Beispiel #1
0
 public static BookAbility getAbility(AbilityType type) {
   for (int i = 11; i >= 0; i--) {
     Ability a = ActionBar.getAbilityInSlot(i);
     if (a != null && a instanceof BookAbility && ActionBar.isReady(i)) {
       BookAbility ability = (BookAbility) a;
       if (ability.getType() == type) return ability;
     }
   }
   return null;
 }
Beispiel #2
0
 public static boolean barContainsRejuvenation() {
   for (int i = 0; i < 12; i++) {
     if (ActionBar.getAbilityInSlot(i) == BookAbility.REJUVENATE) return true;
   }
   return false;
 }
Beispiel #3
0
 public static boolean rejuvOffCd() {
   WidgetChild rejuvWidget =
       ActionBar.getReloadChild(ActionBar.findAbility(BookAbility.REJUVENATE));
   return barContainsRejuvenation() && rejuvWidget.validate() && !rejuvWidget.visible();
 }
Beispiel #4
0
 public static int getAdrenalinePercent() {
   return ActionBar.getAdrenaline() / 10;
 }