%affectGetAntidotes()

Aliases%affectGetAntidotes( )
Parametersobject @affect

    Returns a list of possible antidotes for the given @affect object. This
can be used to determine how to relieve the affect (useful if the affect
is punitive).

Example:
--------------------------------------------------------------------------

foreach( %affectGetAntidotes( @affect ) as @antidote )
{
if( @antidote == "dispel magic" )
{
cast dispel magic self
break
}
elseif( @antidote == "remove poison" )
{
cast remove poison self
break
}
elseif( @antidote == "remove curse" )
{
cast remove curse self
break
}
elseif( @antidote == "cure blindness" )
{
cast cure blindness self
break
}
endif
}
endforeach