Crew Ability Cost & Crewbonus
Revised cards to use {crew(targetchooser)} (modified taptargetcost) so
it can use crewbonus ability from other creatures.
This commit is contained in:
@@ -58,6 +58,7 @@ CardPrimitive::CardPrimitive(CardPrimitive * source)
|
||||
|
||||
setdoubleFaced(source->doubleFaced);
|
||||
setAICustomCode(source->AICustomCode);
|
||||
setCrewAbility(source->CrewAbility);
|
||||
power = source->power;
|
||||
toughness = source->toughness;
|
||||
restrictions = source->restrictions ? source->restrictions->clone() : NULL;
|
||||
@@ -353,6 +354,17 @@ const string& CardPrimitive::getAICustomCode() const
|
||||
return AICustomCode;
|
||||
}
|
||||
|
||||
void CardPrimitive::setCrewAbility(const string& value)
|
||||
{
|
||||
std::transform(CrewAbility.begin(), CrewAbility.end(), CrewAbility.begin(), ::tolower);
|
||||
CrewAbility = value;
|
||||
}
|
||||
|
||||
const string& CardPrimitive::getCrewAbility() const
|
||||
{
|
||||
return CrewAbility;
|
||||
}
|
||||
|
||||
void CardPrimitive::setName(const string& value)
|
||||
{
|
||||
name = value;
|
||||
|
||||
Reference in New Issue
Block a user