Added PnP Dire Rat.

Added PnP Dire Rat.
This commit is contained in:
Jaysyn904
2021-07-21 17:48:43 -04:00
parent 552f1686c8
commit b01c5cc7db
10849 changed files with 171143 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
#include "NW_I0_SPELLS"
void main()
{
//Declare major variables
object oCaster = GetAreaOfEffectCreator();
effect ePoison = EffectPoison(67); // Fordorran Musk Poison
effect eVis = EffectVisualEffect(VFX_IMP_POISON_S);
object oTarget = GetFirstInPersistentObject();
while(GetIsObjectValid(oTarget))
{
if(GetIsEnemy(oTarget, oCaster))
{
int nRace = GetRacialType(oTarget);
if (( nRace == RACIAL_TYPE_CONSTRUCT ) ||
( nRace == RACIAL_TYPE_ELEMENTAL ) ||
( nRace == 52 ) || // Plants are immune to poison.
( nRace == RACIAL_TYPE_UNDEAD ))
return;
ApplyEffectToObject(DURATION_TYPE_PERMANENT, ePoison, oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
}
oTarget = GetNextInPersistentObject();
}
}