v2.5.0: monk focus ability is now greys out when focus buff is active
This commit is contained in:
committed by
Evan Debenham
parent
1e719e9b49
commit
db4a922aec
+5
@@ -411,6 +411,11 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean usable(MonkEnergy buff) {
|
||||||
|
return super.usable(buff) && buff.target.buff(FocusBuff.class) == null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAbility(Hero hero, Integer target) {
|
public void doAbility(Hero hero, Integer target) {
|
||||||
Buff.affect(hero, FocusBuff.class);
|
Buff.affect(hero, FocusBuff.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user