mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
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:
parent
4ebfd79005
commit
894d557952
7 changed files with 78 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue