PRC8/nwn/nwnprc/trunk/scripts/prc_brager_dam.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

18 lines
572 B
Plaintext

#include "prc_inc_spells"
void main()
{
object oPC = PRCGetSpellTargetObject();
object oWeap = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
int iDamageType = (!GetIsObjectValid(oWeap)) ? DAMAGE_TYPE_BLUDGEONING : GetItemDamageType(oWeap);
PRCRemoveEffectsFromSpell(oPC, GetSpellId());
effect eDam = EffectDamageIncrease(DAMAGE_BONUS_1, iDamageType);
effect eAtk = EffectAttackIncrease(1);
effect eLink = EffectLinkEffects(eDam, eAtk);
eLink = ExtraordinaryEffect(eLink);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oPC);
}