WoW:API UnitCanAttack: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
  <center>'''UnitCanAttack''' ''-Documentation by [[user:danboo|danboo]]-''</center>
  <center>'''UnitCanAttack''' ''-Documentation by [[user:danboo|danboo]]-''</center>


Returns true if the first unit can attack the second, false otherwise.
Returns 1 if the first unit can attack the second, nil otherwise.


  UnitCanAttack(attacker, attacked);
  UnitCanAttack(attacker, attacked);
Line 16: Line 16:
;''Returns''
;''Returns''


:Boolean isTrue
:1 if the <tt>attacker</tt> can attack the <tt>attacked</tt>, nil otherwise
:;isTrue : true if the <tt>attacker</tt> can attack the <tt>attacked</tt>, false otherwise


----
----
Line 34: Line 33:
;''Description''
;''Description''


: Returns true if the first unit can attack the second, false otherwise.
: Returns 1 if the first unit can attack the second, nil otherwise.


----
----
{{WoW API}}
{{WoW API}}
Anonymous user