Souler/TrinityCore — comment on commit a76c5a6eecd8102677e9cc5fb46386aab21024ea
File: src/server/scripts/Kalimdor/moonglade.cpp line 707
By Discover-:

Should use
if (events.ExecuteEvent() == EVENT_DESPAWN)