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