Fix imprinted Cards not being removed from host

This commit is contained in:
Bug Hunter
2021-01-31 05:13:56 +00:00
committed by Michael Kamensky
parent a32611528e
commit d06d2e112d
10 changed files with 22 additions and 3 deletions

View File

@@ -98,9 +98,11 @@ public class TriggerChangesZone extends Trigger {
if (hasParam("ValidCard")) {
Card moved = (Card) runParams.get(AbilityKey.Card);
boolean leavesBattlefield = "Battlefield".equals(getParam("Origin"));
boolean leavesLKIZone = "Battlefield".equals(getParam("Origin"));
//TODO make this smarter if there ever is a card that lets you play anything from exile
leavesLKIZone |= "Exile".equals(getParam("Origin")) && (moved.getZone().is(ZoneType.Graveyard) || moved.getZone().is(ZoneType.Command));
if (leavesBattlefield) {
if (leavesLKIZone) {
moved = (Card) runParams.get(AbilityKey.CardLKI);
}