mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Veteran Survivor - fixed game error in some use cases
This commit is contained in:
parent
3dc606501d
commit
3b421de2e3
1 changed files with 3 additions and 5 deletions
|
|
@ -15,6 +15,7 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
|
import mage.game.ExileZone;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.target.common.TargetCardInGraveyard;
|
import mage.target.common.TargetCardInGraveyard;
|
||||||
import mage.util.CardUtil;
|
import mage.util.CardUtil;
|
||||||
|
|
@ -67,10 +68,7 @@ enum VeteranSurvivorCondition implements Condition {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
return game
|
ExileZone exileZone = game.getExile().getExileZone(CardUtil.getExileZoneId(game, source));
|
||||||
.getExile()
|
return exileZone != null && exileZone.getCards(game).size() >= 3;
|
||||||
.getExileZone(CardUtil.getExileZoneId(game, source))
|
|
||||||
.getCards(game)
|
|
||||||
.size() >= 3;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue