simplify vanishing implementation

This commit is contained in:
theelk801 2023-08-06 14:16:03 -04:00
parent c07e6be92b
commit 399b65effb
22 changed files with 193 additions and 333 deletions

View file

@ -1076,10 +1076,11 @@ public abstract class AbilityImpl implements Ability {
}
@Override
public void setRuleVisible(boolean ruleVisible) {
public AbilityImpl setRuleVisible(boolean ruleVisible) {
if (!(this instanceof MageSingleton)) { // prevent to change singletons
this.ruleVisible = ruleVisible;
}
return this;
}
@Override