One with the Multiverse - fixed game error on empty library (NPE)

This commit is contained in:
Oleg Agafonov 2023-12-23 17:18:13 +04:00
parent 1737a0a9eb
commit 7f2238bc83

View file

@ -109,6 +109,7 @@ class OneWithTheMultiverseEffect extends AsThoughEffectImpl {
|| card == null || card == null
|| watcher == null || watcher == null
|| sourceObject == null || sourceObject == null
|| controller.getLibrary().getFromTop(game) == null
|| watcher.isAbilityUsed(new MageObjectReference(sourceObject, game))) { || watcher.isAbilityUsed(new MageObjectReference(sourceObject, game))) {
return false; return false;
} }