prepare to move power/toughness out of constructor

This commit is contained in:
xenohedron 2023-05-20 21:07:21 -04:00
parent 70248cdd2b
commit 3a6e84043c
2 changed files with 12 additions and 1 deletions

View file

@ -146,6 +146,17 @@ public class BecomesCreatureSourceEffect extends ContinuousEffectImpl implements
return false;
}
public BecomesCreatureSourceEffect withDynamicPT(DynamicValue power, DynamicValue toughness) {
this.power = power;
this.toughness = toughness;
return this;
}
public BecomesCreatureSourceEffect withDurationRuleAtStart(boolean durationRuleAtStart) {
this.durationRuleAtStart = durationRuleAtStart;
return this;
}
private void setText() {
StringBuilder sb = new StringBuilder();
if (!duration.toString().isEmpty() && durationRuleAtStart) {