Skip to content

Commit

Permalink
refactor: SimpleActivatedAbility default zone (separate lines cont.)
Browse files Browse the repository at this point in the history
  • Loading branch information
xenohedron committed Nov 17, 2024
1 parent b9678c6 commit 9e9b863
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/a/AuraFracture.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public AuraFracture(UUID ownerId, CardSetInfo setInfo) {

// Sacrifice a land: Destroy target enchantment.
Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new DestroyTargetEffect(),
new SacrificeTargetCost(StaticFilters.FILTER_LAND));
ability.addTarget(new TargetEnchantmentPermanent());
Expand Down
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/s/SanctumSpirit.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public SanctumSpirit(UUID ownerId, CardSetInfo setInfo) {
// Discard a historic card: Sanctum Spirit gains indestructible until end of turn.
this.addAbility(
new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn),
new DiscardCardCost(new FilterHistoricCard())
)
Expand Down
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/t/ThunderTotem.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public ThunderTotem(UUID ownerId, CardSetInfo setInfo) {

// {1}{W}{W}: Thunder Totem becomes a 2/2 white Spirit artifact creature with flying and first strike until end of turn.
this.addAbility(new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new BecomesCreatureSourceEffect(new ThunderTotemToken(), CardType.ARTIFACT, Duration.EndOfTurn),
new ManaCostsImpl<>("{1}{W}{W}")));
}
Expand Down
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/t/TidewaterMinion.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public TidewaterMinion(UUID ownerId, CardSetInfo setInfo) {

// {4}: Tidewater Minion loses defender until end of turn.
this.addAbility(new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new LoseAbilitySourceEffect(DefenderAbility.getInstance(), Duration.EndOfTurn),
new ManaCostsImpl<>("{4}")));

Expand Down
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/t/TorpidMoloch.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public TorpidMoloch(UUID ownerId, CardSetInfo setInfo) {

// Sacrifice three lands: Torpid Moloch loses defender until end of turn.
this.addAbility(new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new LoseAbilitySourceEffect(DefenderAbility.getInstance(), Duration.EndOfTurn),
new SacrificeTargetCost(3, StaticFilters.FILTER_LANDS)));
}
Expand Down
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/t/TrenchingSteed.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public TrenchingSteed(UUID ownerId, CardSetInfo setInfo) {

// Sacrifice a land: Trenching Steed gets +0/+3 until end of turn.
this.addAbility(new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new BoostSourceEffect(0, 3, Duration.EndOfTurn),
new SacrificeTargetCost(StaticFilters.FILTER_LAND)));
}
Expand Down
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/t/TroubledHealer.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public TroubledHealer(UUID ownerId, CardSetInfo setInfo) {

// Sacrifice a land: Prevent the next 2 damage that would be dealt to any target this turn.
Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new PreventDamageToTargetEffect(Duration.EndOfTurn, 2),
new SacrificeTargetCost(StaticFilters.FILTER_LAND));
ability.addTarget(new TargetAnyTarget());
Expand Down
1 change: 0 additions & 1 deletion Mage.Sets/src/mage/cards/t/TumbleMagnet.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public TumbleMagnet(UUID ownerId, CardSetInfo setInfo) {
));

Ability ability = new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new TapTargetEffect(),
new TapSourceCost()
);
Expand Down

0 comments on commit 9e9b863

Please sign in to comment.