wowpedia
Main Menu


Returns the reaction of the specified unit to another unit.

reaction = UnitReaction(unit, otherUnit)

Parameters

Arguments

unit
string : UnitId
otherUnit
string : UnitId - The unit to compare with the first unit.

Returns

reaction
number - the level of the reaction of unit towards otherUnit - this is a number between 1 and 8.
  1. Hated
  2. Hostile
  3. Unfriendly
  4. Neutral
  5. Friendly
  6. Honored
  7. Revered
  8. Exalted
Values other than 2, 4 or 5 are only returned when the first unit is an NPC in a reputation faction and the second is you or your pet.

Details