forked from Jaysyn/PRC8
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.
55 lines
2.0 KiB
Plaintext
55 lines
2.0 KiB
Plaintext
|
|
//:////////////////////////////////////
|
|
//: Eye of Gruumsh - Blinding Spittle
|
|
//: ranged touch attack
|
|
//: Reflex save (DC 10 + Eye of Gruumsh level + EoG Con bonus)
|
|
//: Causes blindness
|
|
//:////////////////////////////////////
|
|
|
|
#include "prc_inc_sp_tch"
|
|
|
|
void CheckBlindness(object oTarget)
|
|
{
|
|
if (GetIsDead(oTarget) || !PRCGetIsFighting(oTarget) && PRCGetHasEffect(EFFECT_TYPE_BLINDNESS, oTarget) )
|
|
{
|
|
PRCRemoveSpecificEffect(EFFECT_TYPE_BLINDNESS, oTarget);
|
|
}
|
|
else if(PRCGetHasEffect(EFFECT_TYPE_BLINDNESS, oTarget) )
|
|
{
|
|
DelayCommand(6.0, CheckBlindness(oTarget) );
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
object oCaster = OBJECT_SELF;
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int iTargetRace = MyPRCGetRacialType(oTarget);
|
|
int iBeholder = iTargetRace == RACIAL_TYPE_ABERRATION && GetHasSpell(710, oTarget) && GetHasSpell(711, oTarget) && GetHasSpell(712, oTarget);
|
|
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_ACID_S), oTarget);
|
|
|
|
if(GetDistanceBetween(oCaster, oTarget) < 6.2 && // has to be within 20 ft.
|
|
iTargetRace != RACIAL_TYPE_OOZE && // has to use sight to attack
|
|
iTargetRace != RACIAL_TYPE_CONSTRUCT &&
|
|
iTargetRace != RACIAL_TYPE_UNDEAD &&
|
|
iTargetRace != RACIAL_TYPE_ELEMENTAL &&
|
|
iTargetRace != RACIAL_TYPE_VERMIN &&
|
|
!iBeholder)
|
|
{
|
|
int iHitEnemy = PRCDoRangedTouchAttack(oTarget);;
|
|
|
|
if(iHitEnemy > 0)
|
|
{
|
|
int iDC = 10 + GetLevelByClass(CLASS_TYPE_PRC_EYE_OF_GRUUMSH, oCaster) + GetAbilityModifier(ABILITY_CONSTITUTION, oCaster);
|
|
if(ReflexSave(oTarget, iDC, SAVING_THROW_TYPE_ACID, oCaster) == 0 && !GetIsImmune(oTarget, IMMUNITY_TYPE_BLINDNESS))
|
|
{
|
|
effect eBlind = EffectBlindness();
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBlind, oTarget);
|
|
DelayCommand(6.0,CheckBlindness(oTarget) );
|
|
}
|
|
}
|
|
}
|
|
}
|