[DiscordArchive] In current server TC/AC architecture could an aura outlast it's owner? Like a creature applying a pe
[DiscordArchive] In current server TC/AC architecture could an aura outlast it's owner? Like a creature applying a pe
Archived author: whatwere • Posted: 2022-08-03T19:44:17.255000+00:00
Original source
In current server TC/AC architecture could an aura outlast it's owner? Like a creature applying a permanent DoT that steals health from the target and brings it to the unit, if it despawns is the creature object going to be deleted or is it going to wait for the aura to expire? And what if said creature is an Army of the Dead ghoul?
Archived author: tb • Posted: 2022-08-03T19:45:32.219000+00:00
Original source
Yes, auras can exist without the owner on most aura types
Archived author: whatwere • Posted: 2022-08-03T19:47:46.110000+00:00
Original source
Isn't that problematic for checking get owner? I guess I should just get rid of all auras on unit removal for the sake of getting rid of headaches.
Archived author: tb • Posted: 2022-08-03T19:49:44.299000+00:00
Original source
Anything that needs the caster skips over the part of needing the caster
Archived author: tb • Posted: 2022-08-03T19:50:10.349000+00:00
Original source
Its like this because of being able to logout and have auras still exist
Archived author: <o> • Posted: 2022-08-03T19:50:38.916000+00:00
Original source
it's problematic if you assume the owner exists. You can check `AuraEffects.cpp` for how it's commonly handled, lifesteals or pairing spells always check before accessing them
Archived author: tb • Posted: 2022-08-03T19:50:44.078000+00:00
Original source
Like a warlock can case immolate on you then logout and the aura will function
Archived author: whatwere • Posted: 2022-08-03T19:50:56.580000+00:00
Original source
I'm relying a lot on custom scripts and I don't want to deref nullptr.
Archived author: <o> • Posted: 2022-08-03T19:51:15.065000+00:00
Original source
so check it before you deref
Archived author: tb • Posted: 2022-08-03T19:51:27.148000+00:00
Original source
As long as your script checks if the caster exists before trying to access it you should be fine