Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public static boolean barContainsRejuvenation() {
   for (int i = 0; i < 12; i++) {
     if (ActionBar.getAbilityInSlot(i) == BookAbility.REJUVENATE) return true;
   }
   return false;
 }
Ejemplo n.º 3
0
 public static boolean rejuvOffCd() {
   WidgetChild rejuvWidget =
       ActionBar.getReloadChild(ActionBar.findAbility(BookAbility.REJUVENATE));
   return barContainsRejuvenation() && rejuvWidget.validate() && !rejuvWidget.visible();
 }
Ejemplo n.º 4
0
 public static int getAdrenalinePercent() {
   return ActionBar.getAdrenaline() / 10;
 }