fix Seance

Spirit subtype wasn't being added, and the token shouldn't have haste
This commit is contained in:
Neil Gentleman 2015-11-17 23:13:03 -08:00
parent aef3de9348
commit 1750bf32a1
2 changed files with 3 additions and 5 deletions

View file

@ -97,7 +97,7 @@ class SeanceEffect extends OneShotEffect {
Player controller = game.getPlayer(source.getControllerId()); Player controller = game.getPlayer(source.getControllerId());
if (controller != null && card != null) { if (controller != null && card != null) {
if (controller.moveCards(card, null, Zone.EXILED, source, game)) { if (controller.moveCards(card, null, Zone.EXILED, source, game)) {
PutTokenOntoBattlefieldCopyTargetEffect effect = new PutTokenOntoBattlefieldCopyTargetEffect(source.getControllerId(), null, true); PutTokenOntoBattlefieldCopyTargetEffect effect = new PutTokenOntoBattlefieldCopyTargetEffect(source.getControllerId(), null, false);
effect.setTargetPointer(new FixedTarget(card.getId(), card.getZoneChangeCounter(game))); effect.setTargetPointer(new FixedTarget(card.getId(), card.getZoneChangeCounter(game)));
effect.setAdditionalSubType("Spirit"); effect.setAdditionalSubType("Spirit");
effect.apply(game, source); effect.apply(game, source);

View file

@ -164,11 +164,9 @@ public class PutTokenOntoBattlefieldCopyTargetEffect extends OneShotEffect {
if (gainsHaste) { if (gainsHaste) {
token.addAbility(HasteAbility.getInstance()); token.addAbility(HasteAbility.getInstance());
} }
if (additionalSubType != null) { if (additionalSubType != null && !token.getSubtype().contains(additionalSubType)) {
if (token.getSubtype().contains(additionalSubType)) {
token.getSubtype().add(additionalSubType); token.getSubtype().add(additionalSubType);
} }
}
token.putOntoBattlefield(number, game, source.getSourceId(), playerId == null ? source.getControllerId() : playerId, tapped, attacking, attackedPlayer); token.putOntoBattlefield(number, game, source.getSourceId(), playerId == null ? source.getControllerId() : playerId, tapped, attacking, attackedPlayer);
for (UUID tokenId : token.getLastAddedTokenIds()) { // by cards like Doubling Season multiple tokens can be added to the battlefield for (UUID tokenId : token.getLastAddedTokenIds()) { // by cards like Doubling Season multiple tokens can be added to the battlefield
Permanent tokenPermanent = game.getPermanent(tokenId); Permanent tokenPermanent = game.getPermanent(tokenId);