Skip to content

Commit

Permalink
Fixed a bug: It's not allowed to turn side of double faced cards when…
Browse files Browse the repository at this point in the history
… they are on battlefield.
  • Loading branch information
Vitty85 committed Apr 27, 2021
1 parent 8b358b3 commit ac273b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/mtg/src/MTGAbility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ac273b1

Please sign in to comment.