Coded the initiative ability from CLB set, added some condition to test if a card has been casted from exile or sideboard or commandzone.

This commit is contained in:
Vittorio Alfieri
2023-05-04 14:56:04 +02:00
parent 509e25d4cc
commit 0efc61fda7
9 changed files with 170 additions and 0 deletions

View File

@@ -1373,6 +1373,10 @@ void WParsedInt::extendedParse(string s, Spell * spell, MTGCardInstance * card)
{
intValue = (s == "pdungeoncompleted")?card->controller()->dungeonCompleted:card->controller()->opponent()->dungeonCompleted;
}
else if (s == "pinitiative" || s == "oinitiative") // Which player has the initiative
{
intValue = (s == "pinitiative")?card->controller()->initiative:card->controller()->opponent()->initiative;
}
else if (s == "pwrtotatt" || s == "thstotatt")//count Total Power or toughness of attacking creatures (e.g. Battle Cry Goblin)
{
intValue = 0;