WoW:API UnitIsEnemy: Difference between revisions

m
→‎Returns: Value seems to have updated to boolean. Failed with [ 1 ], failed with [ "true" ], success with [ true ]
(New page: {{wowapi}} This function will determine if the target is hostile towards you. == Parameters == === Function === :;UnitIsEnemy : UnitIsEnemy("unit","otherunit")<br>Determine whether a un...)
 
m (→‎Returns: Value seems to have updated to boolean. Failed with [ 1 ], failed with [ "true" ], success with [ true ])
Line 12: Line 12:


=== Returns ===
=== Returns ===
:;IsEnemy: Returns either nil or 1, not a boolean value.<br>If the second parameter is "target" and nothing is targeted, this function returns <tt>nil</tt>.
;IsEnemy: true or false, boolean.<br>If the second parameter is "target" and nothing is targeted, this function returns <tt>nil</tt>.


=== Example ===
=== Example ===
Anonymous user