Switching PT, Token Indicator

Added Switching PT like Layer 7e, Token Indicator for cloned Cards
This commit is contained in:
Anthony Calosa
2015-09-19 23:25:33 +08:00
parent 8e15ad7ed0
commit c372ffa111
9 changed files with 150 additions and 43 deletions
+16 -2
View File
@@ -4197,7 +4197,14 @@ for (it = types.begin(); it != types.end(); it++)
if(newpowerfound )
{
WParsedInt * val = NEW WParsedInt(newpower,NULL, source);
_target->addbaseP(val->getValue());
if(_target->isSwitchedPT)
{
_target->switchPT(false);
_target->addbaseP(val->getValue());
_target->switchPT(true);
}
else
_target->addbaseP(val->getValue());
delete val;
}
if(newtoughnessfound )
@@ -4205,7 +4212,14 @@ for (it = types.begin(); it != types.end(); it++)
//and you turn it into 1/1, the 1 damage is still there and the creature must die...
//the toughness is intact but what we see in the game is the life...
WParsedInt * val = NEW WParsedInt(newtoughness,NULL, source);
_target->addbaseT(val->getValue());
if(_target->isSwitchedPT)
{
_target->switchPT(false);
_target->addbaseT(val->getValue());
_target->switchPT(true);
}
else
_target->addbaseT(val->getValue());
delete val;
}