mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Fixed Mesmeric Fiend bug. https://www.slightlymagic.net/forum/viewtopic.php?f=70&t=28979&p=239932#p239932
This commit is contained in:
parent
5c15400f02
commit
1246c55c5c
1 changed files with 13 additions and 13 deletions
|
@ -28,12 +28,12 @@ import mage.util.CardUtil;
|
|||
* @author LevelX2
|
||||
*/
|
||||
public final class MesmericFiend extends CardImpl {
|
||||
|
||||
|
||||
public MesmericFiend(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
|
||||
this.subtype.add(SubType.NIGHTMARE);
|
||||
this.subtype.add(SubType.HORROR);
|
||||
|
||||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
|
@ -45,11 +45,11 @@ public final class MesmericFiend extends CardImpl {
|
|||
// When Mesmeric Fiend leaves the battlefield, return the exiled card to its owner's hand.
|
||||
this.addAbility(new LeavesBattlefieldTriggeredAbility(new MesmericFiendLeaveEffect(), false));
|
||||
}
|
||||
|
||||
|
||||
public MesmericFiend(final MesmericFiend card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MesmericFiend copy() {
|
||||
return new MesmericFiend(this);
|
||||
|
@ -57,26 +57,26 @@ public final class MesmericFiend extends CardImpl {
|
|||
}
|
||||
|
||||
class MesmericFiendExileEffect extends OneShotEffect {
|
||||
|
||||
|
||||
public MesmericFiendExileEffect() {
|
||||
super(Outcome.Exile);
|
||||
this.staticText = "target opponent reveals their hand and you choose a nonland card from it. Exile that card";
|
||||
}
|
||||
|
||||
|
||||
public MesmericFiendExileEffect(final MesmericFiendExileEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MesmericFiendExileEffect copy() {
|
||||
return new MesmericFiendExileEffect(this);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Player opponent = game.getPlayer(source.getFirstTarget());
|
||||
Permanent sourcePermanent = (Permanent) source.getSourceObject(game);
|
||||
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
|
||||
if (controller != null
|
||||
&& opponent != null
|
||||
&& sourcePermanent != null) {
|
||||
|
@ -97,21 +97,21 @@ class MesmericFiendExileEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
class MesmericFiendLeaveEffect extends OneShotEffect {
|
||||
|
||||
|
||||
public MesmericFiendLeaveEffect() {
|
||||
super(Outcome.ReturnToHand);
|
||||
this.staticText = "return the exiled card to its owner's hand";
|
||||
}
|
||||
|
||||
|
||||
public MesmericFiendLeaveEffect(final MesmericFiendLeaveEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public MesmericFiendLeaveEffect copy() {
|
||||
return new MesmericFiendLeaveEffect(this);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
|
|
Loading…
Reference in a new issue