Returns 1 if the aggressor can attack the victim and 0 otherwise. This function takes into consideration player killer status, immortal status, pets, charms, champion mode and any other considerations normally adhered to by the game. The agressor and victim may be a character pointer or keyword.
Example:
if( @n != @r && %canAttack( @n, @r ) ) { silentforce @n hit @r } endif |