mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fix for #3740
This commit is contained in:
parent
b25b159c18
commit
dd9039ae37
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
if (!this.used) {
|
||||
return source.getControllerId().equals(event.getPlayerId());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue