- Joined
- Jul 12, 2009
- Messages
- 321
The cast on yourself bug I thought had been remedied with my distance check....
If a unit is moving, its coordinates and the spell target coordinates will not be the same when cast upon its portrait, so your check will be false. Generally, the offset will be less than the unit's collision, though, so I've used
JASS:
IsUnitInRangeXY(GetTriggerUnit(), GetSpellTargetX(), GetSpellTargetY(), 0)