mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed a bug that copys of tokens used the increased values from cards like "Intangible Virtue" for power and toughness.
This commit is contained in:
parent
e0cd7a6058
commit
1d46a90bbd
1 changed files with 3 additions and 3 deletions
|
@ -75,9 +75,9 @@ public class CopyTokenFunction implements Function<Token, Card> {
|
|||
ability.setSourceId(target.getId());
|
||||
target.addAbility(ability);
|
||||
}
|
||||
|
||||
target.getPower().setValue(source.getPower().getValue());
|
||||
target.getToughness().setValue(source.getToughness().getValue());
|
||||
// Needed to do it this way because else the increased value from cards like "Intangible Virtue" will be copied.
|
||||
target.getPower().setValue(Integer.parseInt(source.getPower().toString()));
|
||||
target.getToughness().setValue(Integer.parseInt(source.getToughness().toString()));
|
||||
|
||||
return target;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue