mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
NPC/Spells
* always treat spells from creature_template_spell as controlled abilities
This commit is contained in:
@@ -713,11 +713,8 @@ class SmartAI
|
||||
|
||||
$tooltip = '[tooltip name=a-'.$this->rowKey.']'.Lang::smartAI('actionTT', array_merge([$a['type']], $a['param'])).'[/tooltip][span tooltip=a-'.$this->rowKey.']%s[/span]';
|
||||
|
||||
// additional parameters
|
||||
$a['param'][6] = '';
|
||||
$a['param'][7] = '';
|
||||
$a['param'][8] = '';
|
||||
$a['param'][9] = '';
|
||||
// init additional parameters
|
||||
$a['param'] = array_pad($a['param'], 10, '');
|
||||
|
||||
switch ($a['type'])
|
||||
{
|
||||
|
||||
@@ -421,14 +421,7 @@ class NpcPage extends GenericPage
|
||||
if (in_array($id, $smartSpells))
|
||||
{
|
||||
$normal[$id] = $values;
|
||||
unset($controled[$id]);
|
||||
continue;
|
||||
}
|
||||
|
||||
// not quite right. All seats should be checked for allowed-to-cast-flag-something
|
||||
if (!$this->subject->getField('vehicleId') && in_array($id, $tplSpells))
|
||||
{
|
||||
$normal[$id] = $values;
|
||||
if (!in_array($id, $tplSpells))
|
||||
unset($controled[$id]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user