Status indicator that shows if a unit is hostile (probably mindcontrolled)
- 2 comments
- 2 comments
Facts
- Date created
- Sep 28, 2008
- Category
- Last update
- Aug 08, 2011
- Development stage
- Release
- Language
- enUS
- License
- All Rights Reserved
- Curse link
- GridStatusHostileUnit
- Downloads
- 43,574
- Recent files
- Reply
- #2
Julith Jan 21, 2009 at 09:59 UTC - 0 likesIf "UnitIsEnemy()" still returns true for an enemy currently under mindcontrol I can add your fix.
- Reply
- #1
saiket Jan 21, 2009 at 00:20 UTC - 0 likesWas 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.