From 3c088cd4e8342c1a8dd17025b68b857f53a28bbd Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Sun, 23 Feb 2020 22:17:16 +0100 Subject: [PATCH] Spell/Effects * parse npcs for spell effect 56 and 112 --- includes/types/spell.class.php | 2 +- pages/spell.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/types/spell.class.php b/includes/types/spell.class.php index 40cac81e..90afb22d 100644 --- a/includes/types/spell.class.php +++ b/includes/types/spell.class.php @@ -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; diff --git a/pages/spell.php b/pages/spell.php index f6810e6a..7e09bd11 100644 --- a/pages/spell.php +++ b/pages/spell.php @@ -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']];