mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
fix test failure
This commit is contained in:
parent
03afee38b5
commit
c0de1cec19
1 changed files with 1 additions and 3 deletions
|
|
@ -5,7 +5,6 @@ import mage.abilities.effects.Effect;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
|
|
@ -49,11 +48,10 @@ public class EntersBattlefieldOrTurnedFaceUpTriggeredAbility extends TriggeredAb
|
|||
case TURNEDFACEUP:
|
||||
return true;
|
||||
case ENTERS_THE_BATTLEFIELD:
|
||||
Permanent sourcePermanent = getSourcePermanentIfItStillExists(game);
|
||||
return Optional
|
||||
.ofNullable(getSourcePermanentIfItStillExists(game))
|
||||
.filter(Objects::nonNull)
|
||||
.map(permanent -> permanent.isFaceDown(game))
|
||||
.map(permanent -> !permanent.isFaceDown(game))
|
||||
.orElse(false);
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue