Improved the Imprint keyword ability and fixed Duplicant primitive.

This commit is contained in:
Vittorio Alfieri
2021-01-06 16:32:14 +01:00
parent 5dbe6f8c9c
commit fe1a89e67a
3 changed files with 19 additions and 103 deletions
+4
View File
@@ -596,6 +596,10 @@ private:
{
intValue = (s == "pnumofcommandcast")?card->controller()->numOfCommandCast:card->controller()->opponent()->numOfCommandCast;
}
else if (s == "evictpw" || s == "evictth")
{
if(card->imprintedCards.size() > 0) intValue = (s == "evictpw")?card->imprintedCards.back()->getPower():card->imprintedCards.back()->getToughness();
}
else if (s == "evictg" || s == "evictu")
{
intValue = (s == "evictg")?card->imprintG:card->imprintU;