* Fixed a problem with power/toughness setting of copied transformed permanents (fixes #5893).

This commit is contained in:
LevelX2 2019-12-23 15:35:53 +01:00
parent 7bb6757876
commit 2f998060a2
2 changed files with 52 additions and 4 deletions

View file

@ -1,4 +1,3 @@
package mage.abilities.keyword;
import mage.abilities.Ability;
@ -66,8 +65,8 @@ public class TransformAbility extends SimpleStaticAbility {
for (Ability ability : sourceCard.getAbilities()) {
permanent.addAbility(ability, game);
}
permanent.getPower().setValue(sourceCard.getPower().getValue());
permanent.getToughness().setValue(sourceCard.getToughness().getValue());
permanent.getPower().modifyBaseValue(sourceCard.getPower().getValue());
permanent.getToughness().modifyBaseValue(sourceCard.getToughness().getValue());
permanent.setTransformable(sourceCard.isTransformable());
}
}