[DiscordArchive] is there any way to check in unit AI / smart AI whether or not the unit is 'slowed' or 'rooted'?
[DiscordArchive] is there any way to check in unit AI / smart AI whether or not the unit is 'slowed' or 'rooted'?
Archived author: Drikish • Posted: 2023-02-11T15:38:40.687000+00:00
Original source
is there any way to check in unit AI / smart AI whether or not the unit is 'slowed' or 'rooted'?
Archived author: Drikish • Posted: 2023-02-11T15:42:49.606000+00:00
Original source
if (me->HasAuraType(SPELL_AURA_MOD_DECREASE_SPEED) || me->HasUnitState(UNIT_STATE_ROOT))
Archived author: Drikish • Posted: 2023-02-11T15:42:52.278000+00:00
Original source
Bitchin
Archived author: Tea • Posted: 2023-02-11T15:48:13.667000+00:00
Original source
a way yes but your check isnt sufficient, there are multiple different aura types that modify movement speed (keyword "modfiy", meaning either up or down)
Archived author: Tea • Posted: 2023-02-11T15:50:08.157000+00:00
Original source
rooted part is correct