This commit is contained in:
Zzooouhh 2017-07-27 23:38:27 +02:00 committed by GitHub
parent dd9039ae37
commit 65c4cbc79e

View file

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