Merge branch 'master' into cmake
This commit is contained in:
@@ -4856,7 +4856,7 @@ public:
|
||||
{
|
||||
if ((isManaProduced->card == source) && isManaProduced->color == Constants::GetColorStringIndex(colorname))
|
||||
{
|
||||
source->controller()->getManaPool()->add(Constants::GetColorStringIndex(colorname),1);
|
||||
source->controller()->getManaPool()->add(Constants::GetColorStringIndex(colorname),1,source,true);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
ManaPool(Player * player);
|
||||
ManaPool(ManaCost * _manaCost, Player * player);
|
||||
int remove (int color, int value);
|
||||
int add(int color, int value, MTGCardInstance * source = NULL);
|
||||
int add(int color, int value, MTGCardInstance * source = NULL, bool extra = false);
|
||||
int add(ManaCost * _cost, MTGCardInstance * source = NULL);
|
||||
int pay (ManaCost * _cost);
|
||||
};
|
||||
|
||||
@@ -248,6 +248,14 @@ struct WEventCombatStepChange : public WEvent
|
||||
WEventCombatStepChange(CombatStep);
|
||||
};
|
||||
|
||||
//Event when a mana is engaged
|
||||
//color : color
|
||||
struct WEventEngageManaExtra : public WEvent {
|
||||
int color;
|
||||
MTGCardInstance* card;
|
||||
ManaPool * destination;
|
||||
WEventEngageManaExtra(int color, MTGCardInstance* card, ManaPool * destination);
|
||||
};
|
||||
|
||||
//Event when a mana is engaged
|
||||
//color : color
|
||||
|
||||
Reference in New Issue
Block a user