v2.5.0: monk focus ability is now greys out when focus buff is active

This commit is contained in:
Evan Debenham
2024-08-24 15:17:39 -04:00
committed by Evan Debenham
parent 1e719e9b49
commit db4a922aec

View File

@@ -411,6 +411,11 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
return 2;
}
@Override
public boolean usable(MonkEnergy buff) {
return super.usable(buff) && buff.target.buff(FocusBuff.class) == null;
}
@Override
public void doAbility(Hero hero, Integer target) {
Buff.affect(hero, FocusBuff.class);