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

@@ -307,6 +307,11 @@ WEventplayerMonarch::WEventplayerMonarch(Player * player) :
{
}
WEventplayerInitiative::WEventplayerInitiative(Player * player) :
player(player)
{
}
WEventplayerShuffled::WEventplayerShuffled(Player * player) :
player(player)
{
@@ -663,6 +668,12 @@ Targetable * WEventplayerMonarch::getTarget(Player * player)
return NULL;
}
Targetable * WEventplayerInitiative::getTarget(Player * player)
{
if (player) return player;
return NULL;
}
Targetable * WEventplayerShuffled::getTarget(Player * player)
{
if (player) return player;