initial commit for changing CDAs interacting with Scarab God/God-Pharaoh's gift (untested)(#4082)

This commit is contained in:
Evan Kranzler 2017-10-02 12:47:18 -04:00
parent aa6e4dfd6a
commit 6b2c20b29e
9 changed files with 28 additions and 5 deletions

View file

@ -233,9 +233,11 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
token.addAbility(FlyingAbility.getInstance());
}
if (tokenPower != Integer.MIN_VALUE) {
token.removePTCDA();
token.getPower().modifyBaseValue(tokenPower);
}
if (tokenToughness != Integer.MIN_VALUE) {
token.removePTCDA();
token.getToughness().modifyBaseValue(tokenToughness);
}
if (additionalSubType != null && !token.hasSubtype(additionalSubType, game)) {