Status indicator that shows if a unit is hostile (probably mindcontrolled)
- 2 comments
- 2 comments
Facts
- Date created
- 28 Sep 2008
- Category
- Last update
- 08 Jan 2010
- Development stage
- Release
- Language
- enUS
- License
- All Rights Reserved
- Curse link
- GridStatusHostileUnit
- Recent files
- #2
Julith Wed, 21 Jan 2009 09:59:32If "UnitIsEnemy()" still returns true for an enemy currently under mindcontrol I can add your fix.
- #1
saiket Wed, 21 Jan 2009 00:20:39Was it your intention to have friendly mind-controlled units show up as hostile even though they are not attackable? I understand that you use UnitIsCharmed for performance reasons, but having priests' mind controlled NPCs show up as hostile is confusing. Would it be possible to swap the original hostile check,
...with this one that additionally checks hostility only if the unit is actually charmed?
The additional UnitIsEnemy call hardly affects performance in this case, because 99% of the time it won't be called.