[DiscordArchive] https://stackoverflow.com/questions/65512695/how-to-immobilize-a-mob-in-a-script
[DiscordArchive] https://stackoverflow.com/questions/65512695/how-to-immobilize-a-mob-in-a-script
Archived author: Honey • Posted: 2020-12-30T19:43:10.276000+00:00
Original source
https://stackoverflow.com/questions/6551...n-a-script
Im back at the gruul boss script. To fix it fully, i would need to immobilize the boss in an already existing event and remove that flag in another.
however, i cant find a way to prevent gruul from chasing his target.
i tried comparing it to permanently snared bosses like ragnaros and c'thun without finding a flag which fixes it.
anyone with a hint how to code it?
Archived author: Kitzunu • Posted: 2020-12-30T19:46:59.953000+00:00
Original source
I believe unit_flags UNIT_FLAG_PACIFIED could do it.
Archived author: Honey • Posted: 2020-12-30T20:09:21.875000+00:00
Original source
hmm yeah, the pacified flag is one required part. i managed to code and compile it. however, it doesnt prevent the movement itself.
Archived author: Honey • Posted: 2020-12-30T20:11:25.650000+00:00
Original source
ive found this in another bossmodule:
``me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);``
however, that flag is not in the wiki. im gonna test what it does.
Archived author: Honey • Posted: 2020-12-30T20:18:17.846000+00:00
Original source
it doesnt do anything i can recognize. and it does sure not immobilize
Archived author: Kitzunu • Posted: 2020-12-30T20:24:02.484000+00:00
Original source
Test UNIT_FLAG_STUNNED
Archived author: FALL1N • Posted: 2020-12-30T21:07:52.895000+00:00
Original source
stunned will imobilize it, I used it for Mimiron
Archived author: Honey • Posted: 2020-12-30T21:09:38.693000+00:00
Original source
~~yeah, this prevents the movement.~~ but it also prevents the finishing of the cast it does while being stunned.
im fiddeling with event rescheduling now to make it cast its spells and still not move being stunned
Archived author: Honey • Posted: 2020-12-30T22:07:40.866000+00:00
Original source
UNIT_FLAG_STUNNED does not prevent Gruul from moving either
Archived author: Honey • Posted: 2020-12-30T22:09:12.085000+00:00
Original source
the PACIFIED flag applies and prevents auto attacks. the stunned flag does not do anything i can notice regarding movement. it just prevents the cast of "Ground Slam" being finished