This commit is contained in:
Muz 2026-01-27 06:55:15 +04:00 committed by GitHub
commit 143b34dc05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 48 deletions

View file

@ -16,6 +16,7 @@ import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.Angel33Token;
import mage.game.permanent.token.TokenImpl;
import java.util.UUID;
@ -72,28 +73,8 @@ class AnsweredPrayersEffect extends OneShotEffect {
return true;
}
game.addEffect(new BecomesCreatureSourceEffect(
new AnsweredPrayersToken(), CardType.ENCHANTMENT, Duration.EndOfTurn
new Angel33Token(), CardType.ENCHANTMENT, Duration.EndOfTurn
), source);
return true;
}
}
class AnsweredPrayersToken extends TokenImpl {
AnsweredPrayersToken() {
super("", "3/3 Angel creature with flying");
cardType.add(CardType.CREATURE);
subtype.add(SubType.ANGEL);
power = new MageInt(3);
toughness = new MageInt(3);
this.addAbility(FlyingAbility.getInstance());
}
private AnsweredPrayersToken(final AnsweredPrayersToken token) {
super(token);
}
public AnsweredPrayersToken copy() {
return new AnsweredPrayersToken(this);
}
}

View file

@ -15,7 +15,7 @@ import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledLandPermanent;
import mage.game.permanent.token.TokenImpl;
import mage.game.permanent.token.custom.CreatureToken;
import mage.target.TargetPermanent;
import java.util.UUID;
@ -41,9 +41,18 @@ public final class AvalancheCaller extends CardImpl {
this.toughness = new MageInt(3);
// {2}: Target snow land you control becomes a 4/4 Elemental creature with haste and hexproof until end of turn. It's still a land.
Ability ability = new SimpleActivatedAbility(new BecomesCreatureTargetEffect(
new AvalancheCallerToken(), false, true, Duration.EndOfTurn
), new GenericManaCost(2));
Ability ability = new SimpleActivatedAbility(
new BecomesCreatureTargetEffect(
new CreatureToken(4, 4, "4/4 Elemental creature with hexproof and haste")
.withSubType(SubType.ELEMENTAL)
.withAbility(HasteAbility.getInstance())
.withAbility(HexproofAbility.getInstance()),
false,
true,
Duration.EndOfTurn
),
new GenericManaCost(2)
);
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}
@ -57,26 +66,3 @@ public final class AvalancheCaller extends CardImpl {
return new AvalancheCaller(this);
}
}
class AvalancheCallerToken extends TokenImpl {
AvalancheCallerToken() {
super("", "4/4 Elemental creature with hexproof and haste");
this.cardType.add(CardType.CREATURE);
this.subtype.add(SubType.ELEMENTAL);
this.power = new MageInt(4);
this.toughness = new MageInt(4);
this.addAbility(HexproofAbility.getInstance());
this.addAbility(HasteAbility.getInstance());
}
private AvalancheCallerToken(final AvalancheCallerToken token) {
super(token);
}
public AvalancheCallerToken copy() {
return new AvalancheCallerToken(this);
}
}