Fixed a problem with exiling copied spells from the stack (Time Stop and Hive Mind problem).

This commit is contained in:
LevelX2 2018-04-20 15:40:02 +02:00
parent 43b7222ab6
commit c648ddd6e5

View file

@ -763,6 +763,10 @@ public class Spell extends StackObjImpl implements Card {
@Override @Override
public boolean moveToExile(UUID exileId, String name, UUID sourceId, Game game, List<UUID> appliedEffects) { public boolean moveToExile(UUID exileId, String name, UUID sourceId, Game game, List<UUID> appliedEffects) {
if (this.isCopiedSpell()) {
game.getStack().remove(this);
return true;
}
return this.card.moveToExile(exileId, name, sourceId, game, appliedEffects); return this.card.moveToExile(exileId, name, sourceId, game, appliedEffects);
} }