mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Reverted back WallOfFrost (Exception)
This commit is contained in:
parent
dd13fcac17
commit
b2c5114b87
1 changed files with 61 additions and 21 deletions
|
@ -28,17 +28,21 @@
|
|||
|
||||
package mage.sets.magic2010;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BlocksTriggeredAbility;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.effects.common.SkipNextUntapTargetEffect;
|
||||
import mage.abilities.keyword.DefenderAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class WallOfFrost extends CardImpl<WallOfFrost> {
|
||||
|
@ -53,7 +57,8 @@ public class WallOfFrost extends CardImpl<WallOfFrost> {
|
|||
|
||||
this.addAbility(DefenderAbility.getInstance());
|
||||
// Whenever Wall of Frost blocks a creature, that creature doesn't untap during its controller's next untap step.
|
||||
this.addAbility(new BlocksTriggeredAbility(new SkipNextUntapTargetEffect(), false, true));
|
||||
//this.addAbility(new BlocksTriggeredAbility(new SkipNextUntapTargetEffect(), false, true));
|
||||
this.addAbility(new WallOfFrostAbility());
|
||||
}
|
||||
|
||||
public WallOfFrost(final WallOfFrost card) {
|
||||
|
@ -66,3 +71,38 @@ public class WallOfFrost extends CardImpl<WallOfFrost> {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
class WallOfFrostAbility extends TriggeredAbilityImpl<WallOfFrostAbility> {
|
||||
|
||||
public WallOfFrostAbility() {
|
||||
super(Constants.Zone.BATTLEFIELD, new SkipNextUntapTargetEffect(), false);
|
||||
}
|
||||
|
||||
public WallOfFrostAbility(final WallOfFrostAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public WallOfFrostAbility copy() {
|
||||
return new WallOfFrostAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.BLOCKER_DECLARED && event.getSourceId().equals(this.getSourceId())) {
|
||||
this.addTarget(new TargetCreaturePermanent());
|
||||
this.getTargets().get(0).add(event.getTargetId(), game);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever {this} blocks a creature, that creature doesn't untap during its controller's next untap step";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue