Sarjuuk / aowow

Database viewer for TrinityCore based on aowow by @LordJZ, based on the JS-Engine of Wowhead
204 stars 217 forks source link

Update smartAI.class.php #346

Closed opiums9 closed 2 years ago

opiums9 commented 2 years ago

Undefined index: teleportA When debugging, I found what is called "name" , example:

array(1) {
  ["name"]=>
  string(37) "Инициатор Тероккара"
}

PHP:

            case SAI_ACTION_TELEPORT:                       // 62 -> invoker [resolved coords already stored in areatrigger entry]
                var_dump($this->miscData); //debug
                $a['param'][6] = $this->miscData['teleportA'];
                $this->jsGlobals[TYPE_ZONE][] = $a['param'][6];
                break;
Sarjuuk commented 2 years ago

fixed in 117ab617b62ce43d37f31bc2fed3585573457e69

name refers to the npc name and you broke areatrigger teleport