Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,25 @@
/*
Celebrant of Sharess Sanctuary
*/
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
int nClass = GetLevelByClass(CLASS_TYPE_CELEBRANT_SHARESS, oPC);
int nDC = GetSkillRank(SKILL_PERFORM, oPC) + d20();
location lTarget = GetLocation(oPC);
object oTarget = MyFirstObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_HUGE, lTarget, TRUE, OBJECT_TYPE_CREATURE);
//Cycle through the targets within the spell shape until an invalid object is captured.
while (GetIsObjectValid(oTarget))
{
if (GetIsFriend(oPC, oTarget) || oTarget == oPC)
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectSanctuary(nDC), oTarget, HoursToSeconds(nClass));
}
//Select the next target within the spell shape.
oTarget = MyNextObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_HUGE, lTarget, TRUE, OBJECT_TYPE_CREATURE);
}
}