[DiscordArchive] what piece of code decides that boss should be despawned on evasion or boss should run to his home p
[DiscordArchive] what piece of code decides that boss should be despawned on evasion or boss should run to his home p
Archived author: Toramaru Shou • Posted: 2023-11-19T07:30:09.032000+00:00
Original source
what piece of code decides that boss should be despawned on evasion or boss should run to his home position?
Archived author: KJack • Posted: 2023-11-19T07:31:15.810000+00:00
Original source
in the AI script:
```c++
void EnterEvadeMode(EvadeReason why) override
{
if (why != EvadeReason::EVADE_REASON_NO_PATH)
{
me->DespawnOnEvade(5s);
}
BossAI::EnterEvadeMode(why);
}
```
Archived author: KJack • Posted: 2023-11-19T07:31:27.429000+00:00
Original source
Example: <https://github.com/azerothcore/azerothcore-wotlk/blob/9ecb85acb5d8b8f71d9d103ea930096c1f4f4816/src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp#L252C1-L260C6>
Archived author: KJack • Posted: 2023-11-19T07:32:07.335000+00:00
Original source
I literally just implemented it, so that is a question I happen to be able to help with.
Archived author: Toramaru Shou • Posted: 2023-11-19T07:32:31.441000+00:00
Original source
tyvm, trying to fix Rotface, because he doesn't reset properly
Archived author: Toramaru Shou • Posted: 2023-11-19T07:35:25.198000+00:00
Original source
<@163514614863101962> followup question tho, Rotface and Festergut have the same EnterEvadeMode code, do I need to look "why" specifically? Fester despawns/respawn, Rot just runs back