diff --git a/pages/quest.php b/pages/quest.php index d6828c7b..f5b25683 100644 --- a/pages/quest.php +++ b/pages/quest.php @@ -781,13 +781,13 @@ class QuestPage extends GenericPage // spellRewards $displ = $this->subject->getField('rewardSpell'); $cast = $this->subject->getField('rewardSpellCast'); - if (!$cast && $displ) + if ($cast <= 0 && $displ > 0) { $cast = $displ; $displ = 0; } - if ($cast || $displ) + if ($cast > 0 || $displ > 0) { $rewSpells = new SpellList(array(['id', [$displ, $cast]])); $this->extendGlobalData($rewSpells->getJSGlobals());