mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
* Fixed a problem with power/toughness setting of copied transformed permanents (fixes #5893).
This commit is contained in:
parent
7bb6757876
commit
2f998060a2
2 changed files with 52 additions and 4 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue