Determines course of action for spell-casting NPC while being attacked by ranged foes.
Targets ranged attacker as long as not currently in melee. If current ranged attacker is alone, checks OBJECT_SELF for appropriate AREA EFFECT (discriminant) attack and if OBJECT_SELF and target are more than 5 meters apart.
If more than one attacker, checks for a AREA EFFECT (indiscriminant) talent, if both AREA EFFECT checks are invalid, does a RANGED attack talent check.
|functions:||TalentMeleeAttack | TalentMeleeAttacked | TalentRangedEnemies | TalentSpellAttack|
|categories:||Combat Functions | Core AI Talent Functions | Talents/Skills/Feats Functions|
|events:||OnCombatRoundEnd Event | OnPhysicalAttacked Event|
author: Jody Fletcher, editor: Mistress