Erwan
- Adding cycling. Check Akroma's vengeance in ONS for an example. Note that this uses autohand instead of auto, this is important! You can also use autograveyard.
- All "auto" activated abilities should work with autohand, so this is not only for cycling, but could be used for other abilities as well. For example autohand={3}:cycling can also be written autohand={3}{S}:Draw:1
This commit is contained in:
@@ -46,6 +46,9 @@ MTGCard::MTGCard(MTGCard * source){
|
||||
mtgid = source->mtgid;
|
||||
setId = source->setId;
|
||||
magicText = source->magicText;
|
||||
for(map<string,string>::const_iterator it = source->magicTexts.begin(); it != source->magicTexts.end(); ++it){
|
||||
magicTexts[it->first] = source->magicTexts[it->first];
|
||||
}
|
||||
spellTargetType = source->spellTargetType;
|
||||
alias = source->alias;
|
||||
}
|
||||
@@ -63,6 +66,7 @@ int MTGCard::init(){
|
||||
setId = 0;
|
||||
mtgid = 0;
|
||||
magicText = "";
|
||||
magicTexts.clear();
|
||||
spellTargetType = "";
|
||||
alias = 0;
|
||||
rarity = Constants::RARITY_C;
|
||||
@@ -260,6 +264,12 @@ void MTGCard::addMagicText(string value){
|
||||
magicText.append(value);
|
||||
}
|
||||
|
||||
void MTGCard::addMagicText(string value, string key){
|
||||
std::transform( value.begin(), value.end(), value.begin(),::tolower );
|
||||
if (magicTexts[key].size()) magicTexts[key].append("\n");
|
||||
magicTexts[key].append(value);
|
||||
}
|
||||
|
||||
void MTGCard::setName( string value){
|
||||
name = value;
|
||||
lcname = value;
|
||||
|
||||
Reference in New Issue
Block a user