Fix Flip/Transform Cards
If the card is a copier or a token, it cannot be transformed since it's not a double face card. Also the copied card must be the "active" part of a double faced card. Flip cards (kamigawa block) is not restricted by this since its a single sided card. If the transformed card is cda, take any damage into account (PT bonus is already in effect for cda)..
This commit is contained in:
@@ -3334,8 +3334,35 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
||||
/*vector<string>FlipStats = split(splitFlipStat[1],'%');*/
|
||||
flipStats = splitFlipStat[1];
|
||||
}
|
||||
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats);
|
||||
return a;
|
||||
if(flipStats == "Tomoya the Revealer" ||
|
||||
flipStats == "Tok-Tok, Volcano Born" ||
|
||||
flipStats == "Tobita, Master of Winds" ||
|
||||
flipStats == "Stabwhisker the Odious" ||
|
||||
flipStats == "Shidako, Broodmistress" ||
|
||||
flipStats == "Sasaya's Essence" ||
|
||||
flipStats == "Rune-Tail's Essence" ||
|
||||
flipStats == "Nighteyes the Desecrator" ||
|
||||
flipStats == "Kuon's Essence" ||
|
||||
flipStats == "Kenzo the Hardhearted" ||
|
||||
flipStats == "Kaiso, Memory of Loyalty" ||
|
||||
flipStats == "Ichiga, Who Topples Oaks" ||
|
||||
flipStats == "Homura's Essence" ||
|
||||
flipStats == "Scarmaker" ||
|
||||
flipStats == "Goka the Unjust" ||
|
||||
flipStats == "Erayo's Essence" ||
|
||||
flipStats == "Jaraku the Interloper" ||
|
||||
flipStats == "Azamuki, Treachery Incarnate" ||
|
||||
flipStats == "Autumn-Tail, Kitsune Sage" ||
|
||||
flipStats == "Dokai, Weaver of Life" )
|
||||
{//old flip cards kamigawa
|
||||
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats,true);
|
||||
return a;
|
||||
}
|
||||
else//regular transform
|
||||
{
|
||||
MTGAbility * a = NEW AAFlip(observer, id, card, target,flipStats);
|
||||
return a;
|
||||
}
|
||||
}
|
||||
|
||||
//Change Power/Toughness
|
||||
|
||||
Reference in New Issue
Block a user