mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
[WOE] Implement Restless Spire (#10846)
This commit is contained in:
parent
db444906f2
commit
7d82b6b1be
3 changed files with 76 additions and 1 deletions
|
|
@ -49,10 +49,20 @@ public class BecomesCreatureSourceEffect extends ContinuousEffectImpl {
|
|||
* @param duration Duration for the effect
|
||||
*/
|
||||
public BecomesCreatureSourceEffect(Token token, CardType retainType, Duration duration) {
|
||||
this(token, retainType, duration, (retainType == CardType.PLANESWALKER || retainType == CardType.CREATURE));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token Token as blueprint for creature to become
|
||||
* @param retainType If null, permanent loses its previous types, otherwise retains types with appropriate text
|
||||
* @param duration Duration for the effect
|
||||
* @param durationRuleAtStart for text rule generation
|
||||
*/
|
||||
public BecomesCreatureSourceEffect(Token token, CardType retainType, Duration duration, boolean durationRuleAtStart) {
|
||||
super(duration, Outcome.BecomeCreature);
|
||||
this.token = token;
|
||||
this.retainType = retainType;
|
||||
this.durationRuleAtStart = (retainType == CardType.PLANESWALKER || retainType == CardType.CREATURE);
|
||||
this.durationRuleAtStart = durationRuleAtStart;
|
||||
setText();
|
||||
this.addDependencyType(DependencyType.BecomeCreature);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue