From 0e79ab3855e460e70850116f7bd4bfa2eb33bbef Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Sat, 20 Apr 2019 20:47:02 +0400 Subject: [PATCH] Fixed Kaya's Ghostform that can't return creatures to battlefield; --- Mage.Sets/src/mage/cards/k/KayasGhostform.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mage.Sets/src/mage/cards/k/KayasGhostform.java b/Mage.Sets/src/mage/cards/k/KayasGhostform.java index 277d139bc45..84a9b05f396 100644 --- a/Mage.Sets/src/mage/cards/k/KayasGhostform.java +++ b/Mage.Sets/src/mage/cards/k/KayasGhostform.java @@ -86,6 +86,7 @@ class KayasGhostformTriggeredAbility extends TriggeredAbilityImpl { } if (zEvent.getTarget() != null && zEvent.getTarget().getAttachments() != null && zEvent.getTarget().getAttachments().contains(this.getSourceId())) { + getEffects().get(0).setValue("attachedTo", zEvent.getTarget()); return true; } else { // If both (attachment and attached went to graveyard at the same time, the attachemnets can be already removed from the attached object.) @@ -97,6 +98,7 @@ class KayasGhostformTriggeredAbility extends TriggeredAbilityImpl { Permanent attachedTo = game.getPermanentOrLKIBattlefield(attachment.getAttachedTo()); if (attachedTo != null && attachment.getAttachedToZoneChangeCounter() == attachedTo.getZoneChangeCounter(game)) { // zoneChangeCounter is stored in Permanent + getEffects().get(0).setValue("attachedTo", attachedTo); return true; } }