WoW:API UnitReaction: Difference between revisions

m (→‎Notes: OK, turns out it's always 1 for A-H)
Line 23: Line 23:
* When you're Horde, the reaction of Alliance NPCs to you and your pet is 1<!-- Tested with Silver Covenant NPCs in Dalaran. -->. The same is true of Horde NPCs if you're Alliance.
* When you're Horde, the reaction of Alliance NPCs to you and your pet is 1<!-- Tested with Silver Covenant NPCs in Dalaran. -->. The same is true of Horde NPCs if you're Alliance.
* This doesn't change when a mob becomes aggressive towards a player. I ad to use the negative result of [[API UnitIsFriend]].
* This doesn't change when a mob becomes aggressive towards a player. I ad to use the negative result of [[API UnitIsFriend]].
* Does not work across continents (or zones?)! If you query UnitReaction for a raid (or party)-member across continents, it won't return the correct value (I guess it returns nil, but I have yet to confirm that). I think it only returns correct values for units that are in 'inspect-range'.
* Does not work across continents (or zones?)! If you query UnitReaction for a raid (or party)-member across continents, it will return nil. I think it only returns correct values for units that are in 'inspect-range'.
* In Blizzard Code, UnitReaction is only used between the player and a Non Player Controlled target.
* In Blizzard Code, UnitReaction is only used between the player and a Non Player Controlled target.
Anonymous user