Pages/Quest
* fixed display of spell rewards, if rewardSpellCast was negative
This commit is contained in:
parent
a8d686104e
commit
44c90b71fa
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue