Improved Die Roll event and trigger, added Flip Coin trigger management, added/fixed almost all primitives with "roll a die ability", fixed some tab chars in source files.

This commit is contained in:
valfieri
2020-12-15 19:49:06 +01:00
parent bf3d35463f
commit b09763d89e
12 changed files with 666 additions and 297 deletions
+10 -2
View File
@@ -345,7 +345,7 @@ struct WEventCardCopiedACard : public WEventCardUpdate {
//alterenergy event
struct WEventplayerEnergized : public WEvent {
WEventplayerEnergized(Player * player,int nb_count);
WEventplayerEnergized(Player * player, int nb_count);
Player * player;
int nb_count;
using WEvent::getTarget;
@@ -368,7 +368,15 @@ struct WEventCardSurveiled : public WEventCardUpdate {
//roll die event
struct WEventCardRollDie : public WEventCardUpdate {
WEventCardRollDie(MTGCardInstance * card);
string playerName;
WEventCardRollDie(MTGCardInstance * card, string playerName);
virtual Targetable * getTarget(int target);
};
//flip coin event
struct WEventCardFlipCoin : public WEventCardUpdate {
string playerName;
WEventCardFlipCoin(MTGCardInstance * card, string playerName);
virtual Targetable * getTarget(int target);
};