TrinityCore/TrinityCore — comment on commit 01d44a83e37d74de0a9abb97c84a492d315bbc3c
File: src/server/game/Entities/Unit/Unit.cpp line 11763
By PKX:

https://github.com/TrinityCore/TrinityCore/pull/4093
I had it ready, but was missing Vigilance. Tested and seems to work (for what i've seen it's the same as yours).