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,32 @@
/*:://////////////////////////////////////////////
//:: Spell Name Darkness: On Exit
//:: Spell FileName PHS_S_DarknessB
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
AOE mearly applies a 20% consealment bonus. Note that if they have Daylight
applied to them, then it cannot be consealed as the effects negate each
other.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Remove one lot of darkness.
object oTarget = GetExitingObject();
effect eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE))
{
if(GetEffectSpellId(eAOE) == PHS_SPELL_DARKNESS)
{
// Remove only 1
RemoveEffect(oTarget, eAOE);
return;
}
// Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
}