Spell/Effects

* parse npcs for spell effect 56 and 112
This commit is contained in:
Sarjuuk
2020-02-23 22:17:16 +01:00
parent 0694367ee9
commit 3c088cd4e8
2 changed files with 3 additions and 1 deletions

View File

@@ -643,7 +643,7 @@ class SpellList extends BaseType
$displays[TYPE_OBJECT][$id] = [[$i], $effMV];
}
// NPC Model from MiscVal
else if (in_array($this->curTpl['effect'.$i.'Id'], [28, 90, 134]) || in_array($this->curTpl['effect'.$i.'AuraId'], [56, 78]))
else if (in_array($this->curTpl['effect'.$i.'Id'], [28, 90, 56, 112, 134]) || in_array($this->curTpl['effect'.$i.'AuraId'], [56, 78]))
{
if (isset($displays[TYPE_NPC][$id]))
$displays[TYPE_NPC][$id][0][] = $i;

View File

@@ -1713,7 +1713,9 @@ class SpellPage extends GenericPage
$foo['name'] .= Util::ucFirst(Lang::game('quest')).' #'.$effMV;;
break;
case 28: // Summon
case 56: // Summon Pet
case 90: // Kill Credit
case 112: // Summon Demon
case 134: // Kill Credit2
if ($summon = $this->subject->getModelInfo($this->typeId, $i))
$redButtons[BUTTON_VIEW3D] = ['type' => TYPE_NPC, 'displayId' => $summon['displayId']];