MatchElementalProtections(talent)

Returns if the talent is a protective spell.

int MatchElementalProtections(
    talent tUse
);

Parameters

tUse

Talent to check.


Description

Returns TRUE if the talent fed to the function is one of 4 elemental protective spells. Otherwise, it returns FALSE.



Remarks

Found in nw_i0_generic.nss line 4977

In the core AI function GetMatchCompatibility, if the class fed to that function is mage, cleric, or monster, it calls MatchElementalProtections to determine whether GetMatchCompatibility should return true or false.


Requirements

#include "nw_i0_generic"

Version

1.28

See Also

functions: GetMatchCompatibility
categories: Core AI Talent Functions


 author: Michael Nork, editor: Lilac Soul, additional contributor(s): Lilac Soul
 Send comments on this topic.