mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
[NCC] Implemented Currency Converter
This commit is contained in:
parent
c848d57d8a
commit
1ef485be6f
3 changed files with 140 additions and 2 deletions
|
|
@ -41,8 +41,12 @@ public class DiscardCardControllerTriggeredAbility extends TriggeredAbilityImpl
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return event.getPlayerId().equals(getControllerId())
|
||||
&& filter.match(game.getCard(event.getTargetId()), getControllerId(), this, game);
|
||||
if (isControlledBy(event.getPlayerId())
|
||||
&& filter.match(game.getCard(event.getTargetId()), this.getControllerId(), this, game)) {
|
||||
this.getEffects().setValue("discardedCard", game.getCard(event.getTargetId()));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue