Checks to see if the @target is affected by an affect object of the @skill. The @skill may either be the name of the skill ("poison") or it may be the ID of the skill. If the affect exists then 1 is returned; otherwise 0 is returned. Note that this function does not look for traditional internal affects that are not implemented as affect objects.
Example: --------------------------------------------------------------------------
if( !%skillAffectItemExists( @target, "disease" ) ) { cast disease @target } endif |