mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added a doTrigger function to getSetStateAbility.
This commit is contained in:
@@ -60,6 +60,15 @@ public class AbilityFactorySetState {
|
||||
public void resolve() {
|
||||
AbilityFactorySetState.setStateResolve(abilityFactory, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doTrigger(final boolean mandatory) {
|
||||
if (!mandatory && abilityFactory.getHostCard().isInAlternateState()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user