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;
 }