MatchElementalProtections

From NWN Lexicon
Jump to navigationJump to search



MatchElementalProtections(talent)

Returns TRUE 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 (Energy Buffer, Endure Elements, Protection from Elements, and Resist Elements). Otherwise, it returns FALSE.



Remarks

Found in x0_i0_match.nss line 242.

In the core AI function GetMatchCompatibility should return true or false.


Requirements

#include " x0_i0_match "

Version

1.28

See Also

functions: 

GetMatchCompatibility



 author: Michael Nork, editors: Lilac Soul, Mistress, additional contributor: Lilac Soul