mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[LCI] Implement Fungal Fortitude
This commit is contained in:
parent
2fce802775
commit
674661b605
3 changed files with 69 additions and 1 deletions
|
|
@ -15,13 +15,21 @@ import mage.players.Player;
|
|||
*/
|
||||
public class ReturnToBattlefieldUnderOwnerControlAttachedEffect extends OneShotEffect {
|
||||
|
||||
private final boolean tapped;
|
||||
|
||||
public ReturnToBattlefieldUnderOwnerControlAttachedEffect() {
|
||||
this(false);
|
||||
}
|
||||
|
||||
public ReturnToBattlefieldUnderOwnerControlAttachedEffect(boolean tapped) {
|
||||
super(Outcome.Neutral);
|
||||
this.tapped = tapped;
|
||||
staticText = "return that card to the battlefield under its owner's control";
|
||||
}
|
||||
|
||||
protected ReturnToBattlefieldUnderOwnerControlAttachedEffect(final ReturnToBattlefieldUnderOwnerControlAttachedEffect effect) {
|
||||
super(effect);
|
||||
this.tapped = effect.tapped;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -39,7 +47,7 @@ public class ReturnToBattlefieldUnderOwnerControlAttachedEffect extends OneShotE
|
|||
if (object instanceof Permanent) {
|
||||
Card card = game.getCard(((Permanent) object).getId());
|
||||
if (card != null) {
|
||||
if (controller.moveCards(card, Zone.BATTLEFIELD, source, game, false, false, true, null)) {
|
||||
if (controller.moveCards(card, Zone.BATTLEFIELD, source, game, this.tapped, false, true, null)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue