Determines if a unit can be attacked by another unit
canAttack = UnitCanAttack(attacker, attackTarget);
Parameters[]
Arguments[]
Returns[]
- canAttack
- Boolean value. true if attack is possible, false otherwise
Example[]
if ( UnitCanAttack("player", "target") ) then
SendChatMessage("Start running " .. UnitName("target") .. " 'cause you're about to DIE!", "SAY" );
end