From 90bf7bd18c9f5e29b5523639d81d5104be8cdc02 Mon Sep 17 00:00:00 2001 From: Ingmar Goudt Date: Sat, 2 Feb 2019 17:14:54 +0100 Subject: [PATCH] watcher null fix for Kess Dissident Mage, issue #5563 --- Mage.Sets/src/mage/cards/k/KessDissidentMage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mage.Sets/src/mage/cards/k/KessDissidentMage.java b/Mage.Sets/src/mage/cards/k/KessDissidentMage.java index 2df8094083..f6a721a0d8 100644 --- a/Mage.Sets/src/mage/cards/k/KessDissidentMage.java +++ b/Mage.Sets/src/mage/cards/k/KessDissidentMage.java @@ -162,7 +162,7 @@ class KessDissidentMageWatcher extends Watcher { super(KessDissidentMageWatcher.class, WatcherScope.GAME); } - KessDissidentMageWatcher(final KessDissidentMageWatcher watcher) { + private KessDissidentMageWatcher(final KessDissidentMageWatcher watcher) { super(watcher); this.allowingObjects.addAll(watcher.allowingObjects); this.castSpells.putAll(watcher.castSpells); @@ -175,8 +175,8 @@ class KessDissidentMageWatcher extends Watcher { Spell spell = (Spell) game.getObject(event.getTargetId()); if (event.getAdditionalReference() != null && event.getAdditionalReference().getSourceId() != null - && spell.isInstant() - || spell.isSorcery()) { + && (spell.isInstant() + || spell.isSorcery())) { allowingObjects.add(event.getAdditionalReference()); castSpells.put(new MageObjectReference(spell.getSourceId(), game), event.getAdditionalReference().getSourceId());