Skip to content

Commit

Permalink
IsReady Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aliniti committed Sep 12, 2015
1 parent 234eb06 commit 89ee605
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TargetSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public static void AddToMenu(Menu config)
_configMenu = config;
config.AddItem(new MenuItem("FocusSelected", "Focus selected target").SetShared().SetValue(true));
config.AddItem(
new MenuItem("ForceFocusSelected", "Only attack selected target").SetShared().SetValue(false));
new MenuItem("ForceFocusSelected", "Only attack selected target").SetShared().SetValue(false)).Permashow();
config.AddItem(
new MenuItem("SelTColor", "Selected target color").SetShared().SetValue(new Circle(true, Color.Red)));
config.AddItem(new MenuItem("Sep", "").SetShared());
Expand Down
2 changes: 1 addition & 1 deletion Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static bool IsReady(this SpellDataInst spell, int t = 0)
return spell != null && spell.Slot != SpellSlot.Unknown && t == 0
? spell.State == SpellState.Ready
: (spell.State == SpellState.Ready ||
(spell.State == SpellState.Cooldown && (spell.CooldownExpires - Game.Time) <= t / 1000f));
(spell.State == (SpellState) 32 && (spell.CooldownExpires - Game.Time) <= t / 1000f));
}

public static bool IsReady(this Spell spell, int t = 0)
Expand Down

0 comments on commit 89ee605

Please sign in to comment.