[DiscordArchive] well what is the purpose of this?
[DiscordArchive] well what is the purpose of this?
Archived author: Anchy • Posted: 2022-12-21T20:50:56.249000+00:00
Original source
i would be careful with them though because how many times threat is called you dont want to do any expensive operations in there
Archived author: Rymercyble • Posted: 2022-12-21T20:51:38.601000+00:00
Original source
i will try OnUnitEnterCombat now and we will see if thats make it
Archived author: Anchy • Posted: 2022-12-21T20:53:08.419000+00:00
Original source
i totally meant to use OnDamage instead of OnUnitEnterCombat
Archived author: Anchy • Posted: 2022-12-21T20:53:12.861000+00:00
Original source
but you could try that yeah
Archived author: Rymercyble • Posted: 2022-12-21T20:53:48.257000+00:00
Original source
i rly dont want to do things like OnDamage even if i stop it right away with simple if it just hurts
Archived author: Anchy • Posted: 2022-12-21T20:54:06.789000+00:00
Original source
I suppose you could when the unit enters combat with a player and the unit itself is not a player, check the units threat list and scale according to the size of the list
Archived author: Anchy • Posted: 2022-12-21T20:54:19.730000+00:00
Original source
and forget about the cache thing
Archived author: Rymercyble • Posted: 2022-12-21T20:55:17.236000+00:00
Original source
that would require me to assume it doesnt contain other npc/pets/totems etc
Archived author: Anchy • Posted: 2022-12-21T20:58:46.887000+00:00
Original source
scan the threat list and check each entry is a player, increment i by 1 for each player
Archived author: Anchy • Posted: 2022-12-21T20:58:48.654000+00:00
Original source
scale by i