Merge pull request #4443 from Ketsuban/fix-unified-strike-2

Fix Unified Strike 2
This commit is contained in:
Oleg Agafonov 2018-01-25 13:35:37 +04:00 committed by GitHub
commit 937a814ba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}
}