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

View File

@@ -56,7 +56,14 @@ int Counter::added()
{
if (power != 0 || toughness != 0)
{
target->addcounter(power, toughness);
if(target->isSwitchedPT)
{
target->switchPT(false);
target->addcounter(power, toughness);
target->switchPT(true);
}
else
target->addcounter(power, toughness);
}
return 1;
}
@@ -65,6 +72,13 @@ int Counter::removed()
{
if (power != 0 || toughness != 0)
{
if(target->isSwitchedPT)
{
target->switchPT(false);
target->removecounter(power, toughness);
target->switchPT(true);
}
else
target->removecounter(power, toughness);
}
return 1;