mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-12-01 21:15:20 +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
|
// spellRewards
|
||||||
$displ = $this->subject->getField('rewardSpell');
|
$displ = $this->subject->getField('rewardSpell');
|
||||||
$cast = $this->subject->getField('rewardSpellCast');
|
$cast = $this->subject->getField('rewardSpellCast');
|
||||||
if (!$cast && $displ)
|
if ($cast <= 0 && $displ > 0)
|
||||||
{
|
{
|
||||||
$cast = $displ;
|
$cast = $displ;
|
||||||
$displ = 0;
|
$displ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($cast || $displ)
|
if ($cast > 0 || $displ > 0)
|
||||||
{
|
{
|
||||||
$rewSpells = new SpellList(array(['id', [$displ, $cast]]));
|
$rewSpells = new SpellList(array(['id', [$displ, $cast]]));
|
||||||
$this->extendGlobalData($rewSpells->getJSGlobals());
|
$this->extendGlobalData($rewSpells->getJSGlobals());
|
||||||
|
|||||||
Reference in New Issue
Block a user