* Bartered Cow - Fixed that it does nothing when discarded (fixes #6884).

This commit is contained in:
LevelX2 2020-07-27 21:47:31 +02:00
parent f297f78cbc
commit 6e68e038b6
3 changed files with 90 additions and 2 deletions

View file

@ -43,7 +43,7 @@ public class DiscardCardControllerTriggeredAbility extends TriggeredAbilityImpl
@Override
public boolean checkTrigger(GameEvent event, Game game) {
return event.getPlayerId().equals(getControllerId())
&& filter.match(game.getCard(event.getTargetId()), getId(), getControllerId(), game);
&& filter.match(game.getCard(event.getTargetId()), getSourceId(), getControllerId(), game);
}
@Override