mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixed Wall of Frost
This commit is contained in:
parent
b2c5114b87
commit
aa8fbd6fab
2 changed files with 4 additions and 46 deletions
|
@ -25,22 +25,16 @@
|
|||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
package mage.sets.magic2010;
|
||||
|
||||
import mage.Constants;
|
||||
import java.util.UUID;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.common.BlocksTriggeredAbility;
|
||||
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
|
||||
|
@ -57,8 +51,7 @@ 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 WallOfFrostAbility());
|
||||
this.addAbility(new BlocksTriggeredAbility(new SkipNextUntapTargetEffect("that creature"), false, true));
|
||||
}
|
||||
|
||||
public WallOfFrost(final WallOfFrost card) {
|
||||
|
@ -69,40 +62,4 @@ public class WallOfFrost extends CardImpl<WallOfFrost> {
|
|||
public WallOfFrost copy() {
|
||||
return new WallOfFrost(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ public class BlocksTriggeredAbility extends TriggeredAbilityImpl<BlocksTriggered
|
|||
|
||||
public BlocksTriggeredAbility(final BlocksTriggeredAbility ability) {
|
||||
super(ability);
|
||||
this.fixedTargetPointer = ability.fixedTargetPointer;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue