Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
//::///////////////////////////////////////////////
//:: Desecrate
//:: prc_tn_des_b
//:://////////////////////////////////////////////
/*
You create an aura that boosts the undead
around you.
*/
#include "prc_alterations"
#include "prc_spell_const"
void main()
{
object oTarget = GetExitingObject();
if(GetHasSpellEffect(SPELL_DES_100, oTarget))
{
//Search through the valid effects on the target.
effect eAOE = GetFirstEffect(oTarget);
while(GetIsEffectValid(eAOE))
{
if(GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
{
if(GetEffectSpellId(eAOE) == SPELL_DES_100)
RemoveEffect(oTarget, eAOE);
}
//Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
}
}