Fixed a bug: It's not allowed to turn side of double faced cards when they are on battlefield.

This commit is contained in:
Vittorio Alfieri
2021-04-27 21:08:51 +02:00
parent 8b358b3d1c
commit ac273b1947

View File

@@ -4305,7 +4305,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
//doubleside
vector<string> 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())