forked from External/mage
[DMC] Implement Sivitri, Dragon Master (#9506)
* [DMC] Implement Sivitri, Dragon Master * Generalised CantAttackYouUnlessPayAllEffect
This commit is contained in:
parent
20a1d2df93
commit
46cc674a8e
18 changed files with 124 additions and 48 deletions
|
|
@ -50,15 +50,14 @@ public abstract class PayCostToAttackBlockEffectImpl extends ReplacementEffectIm
|
|||
public PayCostToAttackBlockEffectImpl(Duration duration, Outcome outcome, RestrictType restrictType, Cost cost) {
|
||||
super(duration, outcome, false);
|
||||
this.restrictType = restrictType;
|
||||
this.cost = cost;
|
||||
this.manaCosts = null;
|
||||
}
|
||||
|
||||
public PayCostToAttackBlockEffectImpl(Duration duration, Outcome outcome, RestrictType restrictType, ManaCosts manaCosts) {
|
||||
super(duration, outcome, false);
|
||||
this.restrictType = restrictType;
|
||||
this.cost = null;
|
||||
this.manaCosts = manaCosts;
|
||||
if (cost instanceof ManaCosts) {
|
||||
this.cost = null;
|
||||
this.manaCosts = (ManaCosts) cost;
|
||||
}
|
||||
else {
|
||||
this.cost = cost;
|
||||
this.manaCosts = null;
|
||||
}
|
||||
}
|
||||
|
||||
public PayCostToAttackBlockEffectImpl(final PayCostToAttackBlockEffectImpl effect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue