mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* ORI-Transform-Planeswalker - Fixed that a additional effect only happens if the planeswalker was actually exiled and returned from the effect (fixes #1123).
This commit is contained in:
parent
08cc5560c4
commit
130ec77df1
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ public class ExileAndReturnTransformedSourceEffect extends OneShotEffect {
|
||||||
// Creature has to be on the battlefield to get exiled and be able to return transformed
|
// Creature has to be on the battlefield to get exiled and be able to return transformed
|
||||||
Permanent sourceObject = game.getPermanent(source.getSourceId());
|
Permanent sourceObject = game.getPermanent(source.getSourceId());
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
if (sourceObject != null && controller != null) {
|
if (sourceObject != null && controller != null && sourceObject.getZoneChangeCounter(game) == source.getSourceObjectZoneChangeCounter()) {
|
||||||
Card card = (Card) sourceObject;
|
Card card = (Card) sourceObject;
|
||||||
if (controller.moveCards(card, Zone.BATTLEFIELD, Zone.EXILED, source, game)) {
|
if (controller.moveCards(card, Zone.BATTLEFIELD, Zone.EXILED, source, game)) {
|
||||||
Player owner = game.getPlayer(card.getOwnerId());
|
Player owner = game.getPlayer(card.getOwnerId());
|
||||||
|
|
Loading…
Reference in a new issue