added functionality to may and choice ability so that it can check a "restriction{}" like a activated ability with cost, that can keep a menu option from appearing if the restriction is not met
auto=choice damage:1 target(creature) restriction{type(creature[blue])~morethan~1}
this choice menu will only appear is there is more than one blue creature inplay
This commit is contained in:
@@ -1074,11 +1074,12 @@ class MayAbility: public MTGAbility, public NestedAbility
|
||||
public:
|
||||
int triggered;
|
||||
bool must;
|
||||
string Cond;
|
||||
Player * previousInterrupter;
|
||||
MTGAbility * mClone;
|
||||
ManaCost * optionalCost;
|
||||
|
||||
MayAbility(GameObserver* observer, int _id, MTGAbility * _ability, MTGCardInstance * _source, bool must = false);
|
||||
MayAbility(GameObserver* observer, int _id, MTGAbility * _ability, MTGCardInstance * _source, bool must = false, string restriction = "");
|
||||
|
||||
void Update(float dt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user