Fix Unified Strike for real this time

This commit is contained in:
Thomas Winwood 2018-01-25 02:55:31 +00:00
parent 299f78d710
commit 87c16cb09f

View file

@ -76,7 +76,7 @@ class UnifiedStrikeEffect extends OneShotEffect {
UnifiedStrikeEffect() {
super(Outcome.Exile);
this.staticText = "Exile target attacking creature if its power is less than or equal to the number of Soldiers on the battlefield.";
this.staticText = "Exile target attacking creature if its power is less than or equal to the number of Soldiers on the battlefield";
}
UnifiedStrikeEffect(final UnifiedStrikeEffect effect) {
@ -102,6 +102,10 @@ class UnifiedStrikeEffect extends OneShotEffect {
source.getSourceId(),
game
).size();
return creature.getPower().getValue() <= soldierCount;
boolean successful = creature.getPower().getValue() <= soldierCount;
if (successful) {
player.moveCards(creature, Zone.EXILED, source, game);
}
return successful;
}
}