From 44c90b71fa46ee8c48415fd56e6679b500d4b91c Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 20 Mar 2016 18:33:56 +0100 Subject: [PATCH] Pages/Quest * fixed display of spell rewards, if rewardSpellCast was negative --- pages/quest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());