Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Blinding Beauty Enter
|
|
//:: race_blindbeauta.nss
|
|
//::///////////////////////////////////////////////
|
|
/*
|
|
Handles creatures entering the Aura AoE for
|
|
Blinding Beauty
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Fox
|
|
//:: Created On: Nov 27, 2007
|
|
//:://////////////////////////////////////////////
|
|
|
|
//#include "prc_alterations"
|
|
#include "prc_inc_spells"
|
|
|
|
void main()
|
|
{
|
|
object oTarget = GetEnteringObject();
|
|
object oNymph = GetAreaOfEffectCreator();
|
|
|
|
if(spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oNymph))
|
|
{
|
|
//don't blind self :P
|
|
if(oTarget == oNymph)
|
|
return;
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(oNymph, SPELL_NYMPH_BLINDING_BEAUTY));
|
|
|
|
// DC is charisma based
|
|
int nDC = 10 + (GetHitDice(oNymph) / 2) + GetAbilityModifier(ABILITY_CHARISMA, oNymph);
|
|
|
|
//Make Fort Save to negate effect
|
|
if (!/*Fort Save*/ PRCMySavingThrow(SAVING_THROW_FORT, oTarget, nDC, SAVING_THROW_TYPE_NONE))
|
|
{
|
|
effect eBlind = EffectBlindness();
|
|
effect eVis = EffectVisualEffect(VFX_IMP_BLIND_DEAF_M);
|
|
if(GetPRCSwitch(PRC_PNP_BLINDNESS_DEAFNESS))
|
|
eBlind = SupernaturalEffect(eBlind);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBlind, oTarget);
|
|
}
|
|
}
|
|
}
|