Survival: turn on what hits you, resurrect out of harm's way
The companions' first levels showed two weaknesses: Grazhak died hammering a scorpid busy with his imp while another monster hit him, and ghosts waited long minutes near their bodies. The brain now switches target when hit, and picks a safe spot to resurrect.
- Commit
- b44a42e
- Build
- Build success (1 min) · Target worldserver
Priority target
Before: the current target was kept as long as it was valid. Level 2 warlock: his target was fighting the imp 15-20 m away while a second monster killed him in melee.
Now: if a monster hits me and my target is not dealing with me, I turn on the nearest of those hitting me (debug trace “change de cible”).
Resurrection out of harm's way
In WotLK, a ghost resurrects where it stands, up to ~39 m from its body. Instead of waiting for monsters to wander off:
- list threats around the body (hostile, level ≥ own − 3);
- 24 candidate points on 22 and 30 m rings, ground height recomputed;
- pick the point farthest from any threat (at least 18 m), move there, then
CMSG_RECLAIM_CORPSE; - with no safe spot, wait (3 min at most) then resurrect anyway.