%canBodyAttack()

Aliases%canBodyAttack( )
Parametersmobile @attacker, mobile @victim

    This function determines if the attacker is able to issue a body attack
against the victim. When determining if this is possible the function only
takes into consideration differences in magnitude and related issues. For
instance body attacks are not possible when the attacker is more than 1
magnitude smaller than the victim. An exception to this is for the dwarven
race which can perform body attacks against creatures up to 2 magnitudes
greater. This is why dwarves can headbutt trolls but halflings cannot. If
the attacker can perform the body attack then 1 is returned; otherwise 0
is returned.

Example:

if( !%canBodyAttack( @attacker, @victim ) )
{
%nact( "You slam yourself against what feels like a wall "
\ "and knock yourself unconscious.",
\ @attacker, null, @victim, actorOnly )

%nact( "You slams $mself against you and knocks $mself "
\ "unconscious.",
\ @attacker, null, @victim, actorOnly )

%nact( "$n slams $mself against $N and knocks $mself "
\ "unconscious.",
\ @attacker, null, @victim, skipPair )

return
}
endif