mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09: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
|
* authors and should not be interpreted as representing official policies, either expressed
|
||||||
* or implied, of BetaSteward_at_googlemail.com.
|
* or implied, of BetaSteward_at_googlemail.com.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package mage.sets.magic2010;
|
package mage.sets.magic2010;
|
||||||
|
|
||||||
import mage.Constants;
|
import java.util.UUID;
|
||||||
import mage.Constants.CardType;
|
import mage.Constants.CardType;
|
||||||
import mage.Constants.Rarity;
|
import mage.Constants.Rarity;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.TriggeredAbilityImpl;
|
import mage.abilities.common.BlocksTriggeredAbility;
|
||||||
import mage.abilities.effects.common.SkipNextUntapTargetEffect;
|
import mage.abilities.effects.common.SkipNextUntapTargetEffect;
|
||||||
import mage.abilities.keyword.DefenderAbility;
|
import mage.abilities.keyword.DefenderAbility;
|
||||||
import mage.cards.CardImpl;
|
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
|
* @author BetaSteward_at_googlemail.com
|
||||||
|
@ -57,8 +51,7 @@ public class WallOfFrost extends CardImpl<WallOfFrost> {
|
||||||
|
|
||||||
this.addAbility(DefenderAbility.getInstance());
|
this.addAbility(DefenderAbility.getInstance());
|
||||||
// Whenever Wall of Frost blocks a creature, that creature doesn't untap during its controller's next untap step.
|
// 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("that creature"), false, true));
|
||||||
this.addAbility(new WallOfFrostAbility());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public WallOfFrost(final WallOfFrost card) {
|
public WallOfFrost(final WallOfFrost card) {
|
||||||
|
@ -69,40 +62,4 @@ public class WallOfFrost extends CardImpl<WallOfFrost> {
|
||||||
public WallOfFrost copy() {
|
public WallOfFrost copy() {
|
||||||
return new WallOfFrost(this);
|
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) {
|
public BlocksTriggeredAbility(final BlocksTriggeredAbility ability) {
|
||||||
super(ability);
|
super(ability);
|
||||||
|
this.fixedTargetPointer = ability.fixedTargetPointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue