Adding a "loseAbilities" keyword per Dr.Solomat's request. The Goal was to code Evil Presence, but I think there is still some work to do to achieve this. The main concern is that (according to the Miki), neither transforms(( nor "becomes(" allow to lose some subtypes. A land enchanted with Evil Presence is supposed to lose its land subtypes. Since we don't support subtypes that good, I don't think this is possible. Additionally, Evil PResence would require to move "{T}:Add{X}" from the basic lands primitives into the rules (which sounds quite easy to do). I've nevertheless tested this on Gaea's Cradle, and it works. (Gaea's Cradle loses its abilities)
This commit is contained in:
@@ -1896,6 +1896,12 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
||||
return NEW ABushidoAbility(id, card, power, toughness);
|
||||
}
|
||||
|
||||
//loseAbilities
|
||||
if (s.find("loseabilities") != string::npos)
|
||||
{
|
||||
return NEW ALoseAbilities(id, card, target);
|
||||
}
|
||||
|
||||
//counter
|
||||
vector<string> splitCounter = parseBetween(s, "counter(", ")");
|
||||
if (splitCounter.size())
|
||||
|
||||
Reference in New Issue
Block a user