From ac273b194719130c0a9a463a816be92e05433a7c Mon Sep 17 00:00:00 2001 From: Vittorio Alfieri Date: Tue, 27 Apr 2021 21:08:51 +0200 Subject: [PATCH] Fixed a bug: It's not allowed to turn side of double faced cards when they are on battlefield. --- projects/mtg/src/MTGAbility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 034a4d5630..cd087914b1 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -4305,7 +4305,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG //doubleside vector splitSide = parseBetween(s, "doubleside(", ")", true); - if (splitSide.size()) + if (splitSide.size() && card->currentZone != card->controller()->game->battlefield) // It's not allowed to turn side on battlefield. { string splitSideName = ""; if (splitSide[1].size())