mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fix for #3740
This commit is contained in:
parent
dd9039ae37
commit
65c4cbc79e
1 changed files with 10 additions and 5 deletions
|
@ -29,16 +29,17 @@ package mage.cards.w;
|
|||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.ReplacementEffectImpl;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
@ -107,6 +108,7 @@ class WordsOfWindEffect extends ReplacementEffectImpl {
|
|||
}
|
||||
}
|
||||
}
|
||||
this.used = true;
|
||||
discard();
|
||||
return true;
|
||||
}
|
||||
|
@ -118,6 +120,9 @@ class WordsOfWindEffect 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue