first part of a series of commits, this one adds "and((" support to the various card removel abilities, tweaks targetedplayer targetchooser, and adds the following number word variables...
counter{}
so you can get a count of a certain counter on a card
the next consist of parts using the same targetchooser method as type:
power:
toughness:
convertedcost:
followed by ---
highest:
lowest:
followed by targetchooser
blah:mybattlefield
so if i want highest converted cost of creatures i control..
convertedcost:highest:creature:mybattlefield
also added an internal ability to reuse and display flying text with a string passed to it.
This commit is contained in:
@@ -37,6 +37,8 @@ CardPrimitive::CardPrimitive()
|
||||
|
||||
CardPrimitive::CardPrimitive(CardPrimitive * source)
|
||||
{
|
||||
if(!source)
|
||||
return;
|
||||
basicAbilities = source->basicAbilities;
|
||||
|
||||
for (size_t i = 0; i < source->types.size(); ++i)
|
||||
@@ -215,6 +217,7 @@ void CardPrimitive::setSubtype(const string& value)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int id = MTGAllCards::add(value, parentType);
|
||||
addType(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user