PRC8/nwn/trunk/newspellbook/bnd_vest_aymfire.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
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.
2023-08-22 10:00:21 -04:00

28 lines
824 B
Plaintext

/*
03/02/21 by Stratovarius
Aym, Queen Avarice
Halo of Fire: At will, you can shroud yourself in a wreath of flame. Any opponent that strikes you in melee takes
1d6 points of fire damage. You can also deal 1d6 points of fire damage with each melee touch attack you make.
*/
#include "prc_inc_sp_tch"
void main()
{
object oBinder = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
int nAttack = PRCDoMeleeTouchAttack(oTarget);
// PvP check.
if(spellsIsTarget(oTarget, SPELL_TARGET_SELECTIVEHOSTILE, oBinder))
{
if (nAttack > 0)
{
int nDamage = d6();
ApplyTouchAttackDamage(oBinder, oTarget, nAttack, nDamage, DAMAGE_TYPE_FIRE);
SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_S), oTarget);
}
}
}