- Fixed spells with Bestow not getting "unbestowed" when they are countered and go to graveyard.

This commit is contained in:
Agetian
2017-09-07 18:08:51 +00:00
parent 801eaaaf37
commit 17c1fc79e1

View File

@@ -162,6 +162,11 @@ public class CounterEffect extends SpellAbilityEffect {
} }
game.getStack().remove(si); game.getStack().remove(si);
// if the target card on stack was a spell with Bestow, then unbestow it
if (tgtSA.getHostCard() != null && tgtSA.getHostCard().isBestowed()) {
tgtSA.getHostCard().unanimateBestow(true);
}
String destination = srcSA.hasParam("Destination") ? srcSA.getParam("Destination") : tgtSA.isAftermath() ? "Exile" : "Graveyard"; String destination = srcSA.hasParam("Destination") ? srcSA.getParam("Destination") : tgtSA.isAftermath() ? "Exile" : "Graveyard";
if (srcSA.hasParam("DestinationChoice")) {//Hinder if (srcSA.hasParam("DestinationChoice")) {//Hinder
List<String> pos = Arrays.asList(srcSA.getParam("DestinationChoice").split(",")); List<String> pos = Arrays.asList(srcSA.getParam("DestinationChoice").split(","));