Add additional copy test to check copy of effects/abilities (#10754)

* add further copy test

* add more missing copy constructors/methods
This commit is contained in:
Susucre 2023-08-05 02:10:23 +02:00 committed by GitHub
parent 4ebfd79005
commit 894d557952
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 78 additions and 8 deletions

View file

@ -16,7 +16,6 @@ import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.ColorPredicate;
/**
*
* @author TheElk801
*/
public class SanctuaryInterveningIfTriggeredAbility extends ConditionalInterveningIfTriggeredAbility {
@ -51,4 +50,13 @@ public class SanctuaryInterveningIfTriggeredAbility extends ConditionalInterveni
public SanctuaryInterveningIfTriggeredAbility(OneShotEffect effect1, OneShotEffect effect2, ObjectColor color1, ObjectColor color2, String text) {
super(makeTrigger(effect1, effect2, color1, color2), makeOrCondition(color1, color2), text);
}
protected SanctuaryInterveningIfTriggeredAbility(final SanctuaryInterveningIfTriggeredAbility ability) {
super(ability);
}
@Override
public SanctuaryInterveningIfTriggeredAbility copy() {
return new SanctuaryInterveningIfTriggeredAbility(this);
}
}

View file

@ -9,4 +9,13 @@ public class RummageEffect extends DoIfCostPaid {
public RummageEffect() {
super(new DrawCardSourceControllerEffect(1), new DiscardCardCost());
}
protected RummageEffect(final RummageEffect effect) {
super(effect);
}
@Override
public RummageEffect copy() {
return new RummageEffect(this);
}
}