forked from External/mage
Almost a refactor. The only change is that all those cards were missing the notTarget argument in TapSourceEffect. closes #12411
32 lines
973 B
Java
32 lines
973 B
Java
|
|
package mage.abilities.common;
|
|
|
|
import mage.abilities.condition.Condition;
|
|
import mage.abilities.decorator.ConditionalOneShotEffect;
|
|
import mage.abilities.effects.common.TapSourceEffect;
|
|
|
|
/**
|
|
* @author Susucr
|
|
*/
|
|
public class EntersBattlefieldTappedUnlessAbility extends EntersBattlefieldAbility {
|
|
|
|
public EntersBattlefieldTappedUnlessAbility(Condition condition) {
|
|
this(condition, condition.toString());
|
|
}
|
|
|
|
public EntersBattlefieldTappedUnlessAbility(Condition condition, String conditionText) {
|
|
super(
|
|
new ConditionalOneShotEffect(null, new TapSourceEffect(true), condition, null),
|
|
"tapped unless " + conditionText
|
|
);
|
|
}
|
|
|
|
private EntersBattlefieldTappedUnlessAbility(final EntersBattlefieldTappedUnlessAbility ability) {
|
|
super(ability);
|
|
}
|
|
|
|
@Override
|
|
public EntersBattlefieldTappedUnlessAbility copy() {
|
|
return new EntersBattlefieldTappedUnlessAbility(this);
|
|
}
|
|
}
|