mirror of
https://github.com/magefree/mage.git
synced 2026-01-22 19:29:59 -08:00
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:
parent
d952e3b2ce
commit
173da04c33
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue