mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
display modelviewer button for spells with transform, mount or shapeshift
parsed SpellShapeshiftForm.dbc to db and added Horde displayIds manually use table for modelIds and spells speciffic to this form
This commit is contained in:
@@ -84,6 +84,17 @@ class CreatureList extends BaseType
|
||||
return $x;
|
||||
}
|
||||
|
||||
public function getRandomModelId()
|
||||
{
|
||||
$data = [];
|
||||
|
||||
for ($i = 1; $i < 5; $i++)
|
||||
if ($_ = $this->curTpl['modelid'.$i])
|
||||
$data[] = $_;
|
||||
|
||||
return !$data ? 0 : $data[array_rand($data)];
|
||||
}
|
||||
|
||||
public function getListviewData() { }
|
||||
public function addGlobalsToJScript(&$refs) { }
|
||||
public function addRewardsToJScript(&$refs) { }
|
||||
|
||||
Reference in New Issue
Block a user