[DiscordArchive] Any reason why you don't just have a timed event tied to the creatures on spawn that checks for thei
[DiscordArchive] Any reason why you don't just have a timed event tied to the creatures on spawn that checks for thei
Archived author: Honey • Posted: 2022-04-24T15:42:17.021000+00:00
Original source
BUT i need to lower the creature event's frequency. If i leave it at 1000ms, the creature might get healed to full with a hot and receive damage afterwords before the check happens.
Archived author: Honey • Posted: 2022-04-24T15:42:58.446000+00:00
Original source
CREATURE_EVENT_ON_HIT_BY_SPELL doesn't fire when a hot ticks
Archived author: Foe • Posted: 2022-04-24T15:43:21.085000+00:00
Original source
CREATURE_EVENT_ON_DAMAGE_TAKEN this event happens pre damage being applied
Archived author: Foe • Posted: 2022-04-24T15:43:31.762000+00:00
Original source
just check there whether the creature is max health or not
Archived author: Foe • Posted: 2022-04-24T15:43:39.580000+00:00
Original source
if it is, set statusStore[phaseId][creature:GetGUIDLow()] = 1
Archived author: Honey • Posted: 2022-04-24T15:44:00.177000+00:00
Original source
too easy, i can't imagine that ♀️
Archived author: Foe • Posted: 2022-04-24T15:44:02.598000+00:00
Original source
Archived author: Foe • Posted: 2022-04-24T15:44:53.367000+00:00
Original source
if(creature:IsFullHealth() and statusStore[creature:GetGUIDLow()] == 0)
statusStore[creature:GetGUIDLow()] = 1
end
Archived author: Foe • Posted: 2022-04-24T15:44:57.005000+00:00
Original source
then you do this in the timed event
Archived author: Foe • Posted: 2022-04-24T15:45:18.664000+00:00
Original source
that way you cover it on update tick as well as on damage taken