mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +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());
|
ability.setSourceId(target.getId());
|
||||||
target.addAbility(ability);
|
target.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
// Needed to do it this way because else the increased value from cards like "Intangible Virtue" will be copied.
|
||||||
target.getPower().setValue(source.getPower().getValue());
|
target.getPower().setValue(Integer.parseInt(source.getPower().toString()));
|
||||||
target.getToughness().setValue(source.getToughness().getValue());
|
target.getToughness().setValue(Integer.parseInt(source.getToughness().toString()));
|
||||||
|
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue