forked from Jaysyn/PRC8
Added Intrinsic Armor builder's feat to prevent any Disarming. Added Intrinsic Weapon builder's feat to prevent Ruin Armor. GetEpicSorcerer() should allow racial hit dice casters. Enlarge / Reduce Person now stores object's original scale. Added prc_inc_size for the above changes. Updated PRC8 version. Reverted Vow of Poverty to use PRC event system. Reverted Forsaker to use PRC event system. Updated Spell Cancel NUI to not show "system" spells @Rakiov) Added notes on instanced Maze system. Organized notes.
61 lines
1.8 KiB
Plaintext
61 lines
1.8 KiB
Plaintext
//:://////////////////////////////////////////////
|
|
//:: Name Angelskin
|
|
//:: FileName sp_angelskin.nss
|
|
//:://////////////////////////////////////////////
|
|
/** @file
|
|
Abjuration [Good]
|
|
Level: Paladin 2
|
|
Components: V, S, DF,
|
|
Casting Time: 1 standard action
|
|
Range: Touch
|
|
Target: Lawful good creature touched
|
|
Duration: 1 round/level
|
|
Saving Throw: Will negates (harmless)
|
|
Spell Resistance: Yes (harmless)
|
|
|
|
You touch your ally with the holy symbol and invoke the blessed words. An opalescent
|
|
glow spreads across her skin, imbuing it with a pearl-like sheen.
|
|
|
|
The subject gains damage reduction 5/evil.
|
|
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Tenjac
|
|
//:: Created On: 1/22/21
|
|
//:: Updated by: Jaysyn
|
|
//:: Updated on: 2024-10-01 08:58:45
|
|
//:://////////////////////////////////////////////
|
|
#include "prc_sp_func"
|
|
#include "prc_add_spell_dc"
|
|
|
|
void main()
|
|
{
|
|
if(!X2PreSpellCastCode()) return;
|
|
|
|
PRCSetSchool(SPELL_SCHOOL_ABJURATION);
|
|
object oPC = OBJECT_SELF;
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int nCasterLvl = PRCGetCasterLevel(oPC);
|
|
int nMetaMagic = PRCGetMetaMagicFeat();
|
|
float fDur = RoundsToSeconds(nCasterLvl);
|
|
|
|
if(nMetaMagic & METAMAGIC_EXTEND)
|
|
{
|
|
fDur += fDur;
|
|
}
|
|
|
|
// Alignment check
|
|
if((GetAlignmentGoodEvil(oTarget) == ALIGNMENT_GOOD) && (GetAlignmentLawChaos(oTarget) == ALIGNMENT_LAWFUL))
|
|
{
|
|
effect eDR = EffectDamageReduction(5, DAMAGE_POWER_PLUS_THREE, 0);
|
|
effect eVFX = EffectVisualEffect(VFX_DUR_AURA_WHITE);
|
|
effect eSpell = EffectLinkEffects(eDR, eVFX);
|
|
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSpell, oTarget, fDur);
|
|
}
|
|
else
|
|
{
|
|
// Invalid target alignment
|
|
SendMessageToPC(oPC, "This spell must target a lawful good creature.");
|
|
}
|
|
} |