forked from External/mage
Reworking card types in preparation for implementing Grist, the Hunger Tide (#7899)
Co-authored-by: Oleg Agafonov <jaydi85@gmail.com>
This commit is contained in:
parent
07e1dff10c
commit
572104b8fc
1159 changed files with 2704 additions and 2203 deletions
|
|
@ -27,9 +27,9 @@ public class CopyTokenEffect extends ContinuousEffectImpl {
|
|||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
permanent.setName(token.getName());
|
||||
permanent.getColor(game).setColor(token.getColor(game));
|
||||
permanent.getCardType().clear();
|
||||
for (CardType type : token.getCardType()) {
|
||||
permanent.addCardType(type);
|
||||
permanent.removeAllCardTypes(game);
|
||||
for (CardType type : token.getCardType(game)) {
|
||||
permanent.addCardType(game, type);
|
||||
}
|
||||
permanent.removeAllSubTypes(game);
|
||||
permanent.copySubTypesFrom(game, token);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue