mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
implemented detail-page for pets
- plus food and talents, minus zones (those are just madning) - also addes some bc/classic information on pet scaling * mucked about the modelviewer, always uses high quality version .. should muck about some more to add animation-info and remove the java-option * fixed some minor issues in spell maxaffectedtaregs in spell is displayed properly and erronous adding all classes/races to globals if none where selected * created own table for creatures which unifies creature_template, locales_creature, creature_template_addon and some creatureDisplayInfo.dbc information * more work against listviews and general structure in global.js .. should probably split this file by class and reassemble it for use
This commit is contained in:
@@ -582,9 +582,9 @@ class SpellList extends BaseType
|
||||
case 'i': // MaxAffectedTargets
|
||||
case 'I':
|
||||
if ($lookup)
|
||||
$base = $this->refSpells[$lookup]->getField('targets');
|
||||
$base = $this->refSpells[$lookup]->getField('maxAffectedTargets');
|
||||
else
|
||||
$base = $this->getField('targets');
|
||||
$base = $this->getField('maxAffectedTargets');
|
||||
|
||||
if (in_array($op, $signs) && is_numeric($oparg) && is_numeric($base))
|
||||
eval("\$base = $base $op $oparg;");
|
||||
@@ -1606,8 +1606,11 @@ class SpellList extends BaseType
|
||||
);
|
||||
}
|
||||
|
||||
(new CharClassList(array(['id', $classes])))->addGlobalsToJScript($refs);
|
||||
(new CharRaceList(array(['id', $races])))->addGlobalsToJScript($refs);
|
||||
if ($classes)
|
||||
(new CharClassList(array(['id', $classes])))->addGlobalsToJScript($refs);
|
||||
|
||||
if ($races)
|
||||
(new CharRaceList(array(['id', $races])))->addGlobalsToJScript($refs);
|
||||
}
|
||||
|
||||
public function addRewardsToJScript(&$refs) { }
|
||||
|
||||
Reference in New Issue
Block a user