mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Pages/Quest
* fixed display of spell rewards, if rewardSpellCast was negative
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user