VerifyCombatMeleeTalent(talent, object)

Determines whether a combat talent could be used on an object.

int VerifyCombatMeleeTalent(
    talent tUse,
    object oTarget
);

Parameters

tUse

The talent to check if it could be used.

oTarget

The target of the talent.


Description

Returns TRUE if tUse can be used on oTarget, otherwise FALSE.



Remarks

This is a utility function that makes sure that certain talents are not used on Elementals, Undead or Constructs. Specifically it examines the feat sap or stunning fist aren't used on creatures that are not succeptible to those attacks.


Requirements

#include "x0_i0_match"

Version

1.29

See Also

categories: Core AI Functions


 author: Tom Cassiotis, editors: Jody Fletcher, Mistress