mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
- Fixed Flickering Spirit
This commit is contained in:
parent
799980dff5
commit
390a48d813
1 changed files with 9 additions and 5 deletions
|
@ -67,12 +67,16 @@ class FlickeringSpiritEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
|
||||
if (permanent == null || player == null) {
|
||||
if (permanent == null
|
||||
|| player == null) {
|
||||
return false;
|
||||
}
|
||||
Card card = permanent.getMainCard();
|
||||
player.moveCards(card, Zone.EXILED, source, game);
|
||||
player.moveCards(card, Zone.BATTLEFIELD, source, game, false, false, true, null);
|
||||
return true;
|
||||
if (player.moveCards(permanent, Zone.EXILED, source, game)) {
|
||||
Card card = game.getExile().getCard(source.getSourceId(), game);
|
||||
if (card != null) {
|
||||
return player.moveCards(card, Zone.BATTLEFIELD, source, game);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue