forked from External/mage
implement [LCI] Market Gnome
This commit is contained in:
parent
a5922457ad
commit
933d694b08
5 changed files with 191 additions and 8 deletions
|
|
@ -18,6 +18,7 @@ import mage.filter.common.FilterOwnedCard;
|
|||
import mage.filter.predicate.Predicate;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCardInGraveyardBattlefieldOrStack;
|
||||
|
|
@ -131,6 +132,8 @@ class CraftCost extends CostImpl {
|
|||
.map(uuid -> {
|
||||
Permanent permanent = game.getPermanent(uuid);
|
||||
if (permanent != null) {
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.EXILED_WHILE_CRAFTING,
|
||||
permanent.getId(), source, player.getId()));
|
||||
return permanent;
|
||||
}
|
||||
return game.getCard(uuid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue