mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
fixes
This commit is contained in:
parent
7aeee8ef7e
commit
97c6f33154
5 changed files with 13 additions and 9 deletions
|
|
@ -83,7 +83,7 @@ class FlingEffect extends OneShotEffect<FlingEffect> {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
int amount = 0;
|
||||
for (Cost cost: source.getCosts()) {
|
||||
if (cost instanceof SacrificeTargetCost) {
|
||||
if (cost instanceof SacrificeTargetCost && ((SacrificeTargetCost)cost).getPermanents().size() > 0) {
|
||||
amount = ((SacrificeTargetCost)cost).getPermanents().get(0).getPower().getValue();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -194,11 +194,14 @@ class KarnLiberatedDelayedEffect extends OneShotEffect<KarnLiberatedDelayedEffec
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
ExileZone exile = game.getExile().getExileZone(exileId);
|
||||
for (Card card: exile.getCards(game)) {
|
||||
card.putOntoBattlefield(game, Zone.EXILED, source.getSourceId(), source.getControllerId());
|
||||
if (exile != null) {
|
||||
for (Card card: exile.getCards(game)) {
|
||||
card.putOntoBattlefield(game, Zone.EXILED, source.getSourceId(), source.getControllerId());
|
||||
}
|
||||
exile.clear();
|
||||
return true;
|
||||
}
|
||||
exile.clear();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue