Creatures

* flag creatures using creaturedisplayinfoextra.dbc as humanoid
This commit is contained in:
Sarjuuk
2017-04-11 15:11:18 +02:00
parent dde09a8a02
commit 6df3a27279
4 changed files with 15 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ class NpcPage extends GenericPage
$mapType = 1;
}
/***********/
/* Infobox */
/***********/
@@ -302,6 +303,7 @@ class NpcPage extends GenericPage
if ($stats)
$infobox[] = Lang::npc('stats').($modes ? ' ('.Lang::npc('modes', $mapType, 0).')' : null).Lang::main('colon').'[ul][li]'.implode('[/li][li]', $stats).'[/li][/ul]';
/****************/
/* Main Content */
/****************/
@@ -329,6 +331,10 @@ class NpcPage extends GenericPage
BUTTON_VIEW3D => ['type' => TYPE_NPC, 'typeId' => $this->typeId, 'displayId' => $this->subject->getRandomModelId()]
);
if ($this->subject->getField('humanoid'))
$this->redButtons[BUTTON_VIEW3D]['humanoid'] = 1;
/**************/
/* Extra Tabs */
/**************/