fix urza lands
the alias is used for checking of "urzatron". revised this because when using if then else in the activation makes the mana ability goes to the stack
This commit is contained in:
@@ -688,6 +688,13 @@ private:
|
||||
{
|
||||
intValue = target->controller()->opponent()->game->hand->nb_cards;
|
||||
}
|
||||
else if (s == "urzatron")//Urza lands
|
||||
{
|
||||
if(card->controller()->game->battlefield->hasAlias(4192) && card->controller()->game->battlefield->hasAlias(4193) && card->controller()->game->battlefield->hasAlias(4194))
|
||||
intValue = 1;
|
||||
else
|
||||
intValue = 0;
|
||||
}
|
||||
else if (s == "worshipped")//Worship
|
||||
{
|
||||
if(card->controller()->game->battlefield->hasType("creature"))
|
||||
|
||||
@@ -103,6 +103,8 @@ class MTGGameZone {
|
||||
|
||||
//returns true if one of the cards in the zone has the ability
|
||||
bool hasAbility(int ability);
|
||||
//returns true if one of the cards in the zone has the alias
|
||||
bool hasAlias(int alias);
|
||||
|
||||
//returns true if one of the cards in the zone has the type
|
||||
bool hasType(const char * value);
|
||||
|
||||
Reference in New Issue
Block a user