PRC8/trunk/scripts/ml_daylight.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

14 lines
379 B
Plaintext

#include "prc_alterations"
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
effect eAoE = EffectAreaOfEffect(VFX_MOB_DAYLIGHT);
int nCasterLvl = GetPrCAdjustedCasterLevelByType(TYPE_DIVINE,oPC,1);
float fDur = (600.0f * nCasterLvl);
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eAoE, oTarget, fDur);
}