Client: keep the current target when it leaves the area of interest (UO last-target) #68
Labels
No labels
alpha:wave-0
alpha:wave-1
alpha:wave-2
alpha:wave-3
area:assets
area:combat
area:ecology
area:infra
area:render
area:scripting
area:ui
area:world
enhancement
epic
migration
post-alpha
roadmap
tech-debt
type:bug
type:chore
type:design
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
marco/IsoMmo#68
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The client clears the current target (
_attackTarget) as soon as the targeted creature leaves the player's area of interest (aMobileRemovedarrives → it drops out of_mobiles→ the target is nulled). So walking away from a target loses it, which is annoying.UO keeps a "last target" that persists even out of view (you can re-attack/re-cast at it when it's back).
Fix (client, later)
_attackTargeteven when the creature leaves view; don't null it onMobileRemoved.MobileRemoveddue to death vs due to AoI — may need to distinguish, or just keep it and let the server reject).