mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Spells/Misc
* try to handle bogus data from creature_template_addon.auras
This commit is contained in:
@@ -426,7 +426,10 @@ class NpcPage extends GenericPage
|
||||
$genSpells = $smartSpells;
|
||||
|
||||
if ($auras = DB::World()->selectCell('SELECT auras FROM creature_template_addon WHERE entry = ?d', $this->typeId))
|
||||
{
|
||||
$auras = preg_replace('/[^\d ]/', ' ', $auras); // remove erronous chars from string
|
||||
$genSpells = array_merge($genSpells, array_filter(explode(' ', $auras)));
|
||||
}
|
||||
|
||||
if ($genSpells)
|
||||
$conditions[] = ['id', $genSpells];
|
||||
|
||||
Reference in New Issue
Block a user