[Quest] Razormaw - SmartAI Script not triggering when Razormaw is spawned
Description
This issue was originally fixed in https://github.com/TrinityCore/TrinityCore/issues/1794 however users began noting that this is not working in 2023, so it seems it may have been rebroken somehow.
Upon testing and reviewing, I can confirm that he is spawning upon burning the Bundle of Dragon Bones in the Ever-Burning Pyre. However, his SmartAI does not activate.
Futher testing revealed that his SmartAI will trigger if a player moves closer to where he spawns by running down the mountain side and then back up to fight him once he starts to move..
According to a comment by @Naddley on the original #1794 issue, the behaviour suggests that the spawn point is too far out of the loaded grid, and not an SAI issue.
However if that is true, then there is a functionality issue here, as Razormaw is spawning precisely where he should. The quest has him load in close to the shore of the island, fly to the south east, then turn towards the player on the mountain peak and land, where he then becomes attackable and the fight begins.
Expected behaviour
The SAI script for Razormaw should be triggered on spawn, regardless of the distance from the player - or this quest will forever be broken.
This path should be triggered on spawn, and not require player proximity. It is supposed to be triggered by event type 11 (on spawn)
Steps to reproduce the problem
- Burn the Bundle of Dragon Bones (24221) on the Ever-burning Pyre (181988)
- Razormaw (17592) spawns to the northeast of the mountain peak, and sits there. His smart AI will never trigger and his movement path will not commence if you stand still.
- Run down the mountain towards Razormaw, his path will trigger.
- Run back up the mountain quickly, before he despawns, to try and take him down in time.
Branch
3.3.5
TC rev. hash/commit
387b4241a99a2cb66d9d8368217f6fb8aecc6b4e
Operating system
Debian 13 x64
Custom changes
Merged branches:
Eluna / master branch Transmog Legion / transmog_legion_3.3.5 branch NPC Bots / npcbots_3.3.5 branch
Complete merge can be reviewed here https://github.com/Routhinator/trinitycore-woltk/tree/main
Source: TrinityCore/TrinityCore