Fix ChooseCreatureEffect when used with non-AsEntersBattlefield.

Zenos yae Galvus was not letting you choose a creature when it entered, because getPermanentEntering returned null due to Zenos already being in play.
This commit is contained in:
Grath 2025-06-05 23:45:02 -04:00
parent d952e3b2ce
commit 173da04c33

View file

@ -48,6 +48,9 @@ public class ChooseCreatureEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
Permanent sourcePermanent = game.getPermanentEntering(source.getSourceId());
if (sourcePermanent == null) {
sourcePermanent = game.getPermanent(source.getSourceId());
}
if (controller == null || sourcePermanent == null) {
return false;
}