mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[BIG] Implement Tarnation Vista
This commit is contained in:
parent
bf1a517550
commit
dd3057fa10
5 changed files with 164 additions and 50 deletions
|
|
@ -0,0 +1,47 @@
|
|||
|
||||
package mage.abilities.common;
|
||||
|
||||
import mage.abilities.StaticAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.EntersBattlefieldEffect;
|
||||
import mage.abilities.effects.common.ChooseColorEffect;
|
||||
import mage.abilities.effects.common.TapSourceEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public class EntersBattlefieldTappedAsItEntersChooseColorAbility extends StaticAbility {
|
||||
|
||||
public EntersBattlefieldTappedAsItEntersChooseColorAbility() {
|
||||
super(Zone.ALL, new EntersBattlefieldEffect(new TapSourceEffect(true)));
|
||||
this.addEffect(new ChooseColorEffect(Outcome.Benefit));
|
||||
}
|
||||
|
||||
private EntersBattlefieldTappedAsItEntersChooseColorAbility(final EntersBattlefieldTappedAsItEntersChooseColorAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EntersBattlefieldTappedAsItEntersChooseColorAbility copy() {
|
||||
return new EntersBattlefieldTappedAsItEntersChooseColorAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addEffect(Effect effect) {
|
||||
if (!getEffects().isEmpty()) {
|
||||
Effect entersEffect = this.getEffects().get(0);
|
||||
if (entersEffect instanceof EntersBattlefieldEffect) {
|
||||
((EntersBattlefieldEffect) entersEffect).addEffect(effect);
|
||||
return;
|
||||
}
|
||||
}
|
||||
super.addEffect(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "{this} enters the battlefield tapped. As it enters, choose a color.";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue