https://github.com/TrinityCore/TrinityCore/blob/a1aa4547b3229a6b8c62fd4f3ebc72bfe9c7d316/src/server/scripts/Northrend/AzjolNerub/AzjolNerub/boss_krikthir_the_gatewatcher.cpp#L232 check this AI