TrinityCore
TrinityCore copied to clipboard
Player / Pet / Bot player with the last hit
Description
I've noticed that when non-players (bots, pets) perform the final killing blow, there is a problem of not being able to loot a creature. in my case i had a script created that spawns bosses when you have the quest and spawns a chest when you finish the quest, but when a non-player hits the final blow then nothing happens.
Expected behaviour
When a pet or NPCBOT in my case does the final fatal blow on the creature, the chest or loot should appear as expected.
Steps to reproduce the problem
I posted the whole thing here: https://github.com/trickerer/Trinity-Bots/issues/199 and I was given a solution that should fix the problem. and there is also a video link where you can see what should happen if it works properly.
Branch
3.3.5
TC rev. hash/commit
TrinityCore rev. 6d962c58cf69+ 2022-07-15 21:26:24 +0000 (npcbots_3.3.5 branch) (Unix, RelWithDebInfo, Static)
Operating system
Debian 11
Custom changes
TrinityCore with Bots: