Further file organization
Further file organization
This commit is contained in:
13
nwn/nwnprc/trunk/scripts/prc_swashheal.nss
Normal file
13
nwn/nwnprc/trunk/scripts/prc_swashheal.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "prc_alterations"
|
||||
#include "prc_feat_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
|
||||
if(GetIsImmune(oTarget, IMMUNITY_TYPE_CRITICAL_HIT)
|
||||
|| GetIsImmune(oTarget, IMMUNITY_TYPE_SNEAK_ATTACK))
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectHeal(GetAbilityModifier(ABILITY_INTELLIGENCE, OBJECT_SELF)), oTarget);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user