mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Slight fix for Molten Sentry (RAV)
This commit is contained in:
parent
efa8bade8f
commit
a3dc06c51f
1 changed files with 4 additions and 4 deletions
|
|
@ -52,10 +52,10 @@ import mage.players.Player;
|
||||||
* @author fireshoes
|
* @author fireshoes
|
||||||
*/
|
*/
|
||||||
public class MoltenSentry extends CardImpl {
|
public class MoltenSentry extends CardImpl {
|
||||||
|
|
||||||
private final static String rule = "As Molten Sentry enters the battlefield, flip a coin. If the coin comes up heads, Molten Sentry enters the battlefield as a "
|
private final static String rule = "As Molten Sentry enters the battlefield, flip a coin. If the coin comes up heads, Molten Sentry enters the battlefield as a "
|
||||||
+ "5/2 creature with haste. If it comes up tails, Molten Sentry enters the battlefield as a 2/5 creature with defender.";
|
+ "5/2 creature with haste. If it comes up tails, Molten Sentry enters the battlefield as a 2/5 creature with defender.";
|
||||||
|
|
||||||
public MoltenSentry(UUID ownerId) {
|
public MoltenSentry(UUID ownerId) {
|
||||||
super(ownerId, 136, "Molten Sentry", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{R}");
|
super(ownerId, 136, "Molten Sentry", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{R}");
|
||||||
this.expansionSetCode = "RAV";
|
this.expansionSetCode = "RAV";
|
||||||
|
|
@ -63,7 +63,7 @@ public class MoltenSentry extends CardImpl {
|
||||||
this.power = new MageInt(0);
|
this.power = new MageInt(0);
|
||||||
this.toughness = new MageInt(0);
|
this.toughness = new MageInt(0);
|
||||||
|
|
||||||
// As Molten Sentry enters the battlefield, flip a coin. If the coin comes up heads, Molten Sentry enters the battlefield as a 5/2 creature with haste.
|
// As Molten Sentry enters the battlefield, flip a coin. If the coin comes up heads, Molten Sentry enters the battlefield as a 5/2 creature with haste.
|
||||||
// If it comes up tails, Molten Sentry enters the battlefield as a 2/5 creature with defender.
|
// If it comes up tails, Molten Sentry enters the battlefield as a 2/5 creature with defender.
|
||||||
this.addAbility(new EntersBattlefieldAbility(new MoltenSentryEffect(), null, rule, ""));
|
this.addAbility(new EntersBattlefieldAbility(new MoltenSentryEffect(), null, rule, ""));
|
||||||
}
|
}
|
||||||
|
|
@ -91,7 +91,7 @@ class MoltenSentryEffect extends OneShotEffect {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
Permanent permanent = game.getPermanentEntering(source.getSourceId());
|
||||||
if (controller != null && permanent != null) {
|
if (controller != null && permanent != null) {
|
||||||
if (controller.flipCoin(game)) {
|
if (controller.flipCoin(game)) {
|
||||||
game.informPlayers("Heads: Molten Sentry enters the battlefield as a 5/2 creature with haste");
|
game.informPlayers("Heads: Molten Sentry enters the battlefield as a 5/2 creature with haste");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue