PRC8/nwn/nwnprc/trunk/scripts/prc_shdwbn_smite.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

35 lines
1.1 KiB
Plaintext

#include "prc_inc_smite"
void Shadowsmite(object oPC, object oTarget, int nClass)
{
if (GetLocalInt(oTarget, "PRCCombat_StruckByAttack"))
{
if (nClass >= 5)
{
SetLocalInt(oTarget, "MercilessPurity", TRUE);
SetLocalObject(oTarget, "Shadowbane", oPC);
}
if (nClass >= 8)
{
int nRace = MyPRCGetRacialType(oTarget);
effect eAttack = EffectAttackIncrease(1);
effect eAC = EffectDamageIncrease(DAMAGE_BONUS_1, DAMAGE_TYPE_DIVINE);
eAttack = VersusRacialTypeEffect(eAttack, nRace);
eAC = VersusRacialTypeEffect(eAC, nRace);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eAttack, oPC, RoundsToSeconds(10));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eAC, oPC, RoundsToSeconds(10));
}
}
}
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
DoSmite(oPC, oTarget, SMITE_TYPE_SHADOWBANE);
int nClass = GetLevelByClass(CLASS_TYPE_SHADOWBANE_INQUISITOR, oPC);
Shadowsmite(oPC, oTarget, nClass);
}