This commit is contained in:
Zzooouhh 2017-07-27 23:36:58 +02:00 committed by GitHub
parent b25b159c18
commit dd9039ae37

View file

@ -98,12 +98,14 @@ class WordsOfWarEffect extends ReplacementEffectImpl {
Player player = game.getPlayer(targetPointer.getFirst(game, source));
if (player != null) {
player.damage(2, source.getSourceId(), game, false, true);
this.used = true;
discard();
return true;
}
Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
if (permanent != null) {
permanent.damage(2, source.getSourceId(), game, false, true);
this.used = true;
discard();
return true;
}
@ -118,6 +120,9 @@ class WordsOfWarEffect extends ReplacementEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
return source.getControllerId().equals(event.getPlayerId());
if (!this.used) {
return source.getControllerId().equals(event.getPlayerId());
}
return false;
}
}