mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
With no target, a harmful spell goes to softenemy and a helpful spell to softfriend, through the engine's own range check, as in retail. A spell that only the caster can receive still goes to the caster. A harmful spell that goes off on the soft enemy makes it a loose target. SoftTargetForce moves a loose target to each new soft enemy (1) or soft friend (2), and clears it when none is left. It never changes a chosen target and never selects one from nothing. Add IsTargetLoose(). SoftTargetMatchLocked and SoftTargetWithLocked now count only a chosen target, and the attack's own selects keep a loose target loose.