Horsefly Swamp update
Creatures & encounter tables to support Horsefly swamp expansion.
This commit is contained in:
34
_module/nss/death_aura1.nss
Normal file
34
_module/nss/death_aura1.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "NW_I0_SPELLS"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oTarget = GetEnteringObject();
|
||||
object oCaster = GetAreaOfEffectCreator();
|
||||
|
||||
int nLevel = GetHitDice(oCaster);
|
||||
int nDC = 10 + nLevel / 2 + GetAbilityModifier(ABILITY_CHARISMA,oCaster);
|
||||
|
||||
|
||||
if ( !GetIsEnemy(oTarget,oCaster) || oTarget == oCaster )
|
||||
return;
|
||||
|
||||
effect eDeath = EffectDeath();
|
||||
eDeath = SupernaturalEffect(eDeath);
|
||||
effect eImp = EffectVisualEffect(VFX_IMP_DEATH);
|
||||
|
||||
|
||||
// Protection from evil wards against effect
|
||||
if ( GetIsImmune(oTarget,IMMUNITY_TYPE_FEAR) ||
|
||||
GetIsImmune(oTarget,IMMUNITY_TYPE_MIND_SPELLS) ||
|
||||
GetHasSpellEffect(SPELL_PROTECTION_FROM_EVIL,oTarget) ||
|
||||
GetHasSpellEffect(SPELL_MAGIC_CIRCLE_AGAINST_EVIL,oTarget) ||
|
||||
GetHasSpellEffect(SPELL_HOLY_AURA,oTarget) )
|
||||
return;
|
||||
|
||||
if ( !PRCMySavingThrow(SAVING_THROW_WILL,oTarget,nDC,SAVING_THROW_TYPE_MIND_SPELLS,oCaster) )
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,eImp,oTarget);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT,eDeath,oTarget);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user