Updated Vow of Poverty. Added Sanctify Ki Strike, Holy Strike, Fist of Heavens, Vow of Abstinence, Vow of Chastity & Gift of Faith. (@fenac). Turned off the Taunt & Parry skills. Re-disabled AC & save bonuses from Tumble & Spellcraft. Updated min() & max() to PRCmin() & PRCmax() to not conflict with similarly named NUI adjacent functions. Set Point Blank Shot to 30' per PnP. Added icon for Chosen of Evil. Started work on Hidden Talent. Created Psionics function cheatsheet. Updated release archive.
49 lines
1.7 KiB
Plaintext
49 lines
1.7 KiB
Plaintext
//:://////////////////////////////////////////////
|
|
//:: Name Cloak of Bravery On Enter
|
|
//:: FileName sp_cloakbraveA.nss
|
|
//:://////////////////////////////////////////////
|
|
/** @file
|
|
Abjuration [Mind-Affecting]
|
|
Level: Paladin 2, Cleric 3, Courage 3,
|
|
Components: V, S,
|
|
Casting Time: 1 standard action
|
|
Range: 60 ft.
|
|
Area: 60-ft.-radius emanation centered on you
|
|
Duration: 10 minutes/level
|
|
Saving Throw: Will negates (harmless)
|
|
Spell Resistance: Yes (harmless)
|
|
|
|
Summoning up your courage, you throw out your arm and sweep
|
|
it over the area, cloaking all your allies in a glittering
|
|
mantle of magic that bolsters their bravery.
|
|
|
|
All allies within the emanation (including you) gain a morale
|
|
bonus on saves against fear effects equal to your caster level
|
|
(to a maximum of +10 at caster level 10th).
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Tenjac
|
|
//:: Created On: 1/28/21
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_sp_func"
|
|
#include "prc_add_spell_dc"
|
|
|
|
|
|
void main()
|
|
{
|
|
if(!X2PreSpellCastCode()) return;
|
|
PRCSetSchool(SPELL_SCHOOL_ABJURATION);
|
|
object oCreator = GetAreaOfEffectCreator();
|
|
int nCasterLvl = PRCGetCasterLevel(oCreator);
|
|
float fDur = HoursToSeconds(nCasterLvl)/6;
|
|
object oTarget = GetEnteringObject();
|
|
int nBonus = PRCMin(10, nCasterLvl);
|
|
|
|
if(GetFactionEqual(oCreator))
|
|
{
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectSavingThrowIncrease(SAVING_THROW_ALL, nBonus, SAVING_THROW_TYPE_FEAR), oTarget, fDur);
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_HEAD_HOLY), oTarget);
|
|
}
|
|
PRCSetSchool();
|
|
} |