PRC8/nwn/nwnprc/trunk/users/Tenjac/spells/sp_blessedaimc.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

47 lines
1.3 KiB
Plaintext

//:://////////////////////////////////////////////
//:: Name Blessed Aim Heartbeat
//:: FileName sp_blessedaimc.nss
//:://////////////////////////////////////////////
/** @file
Blessed Aim
Divination
Level: Blackguard 1, Cleric 1, Paladin 1,
Components: V, S,
Casting Time: 1 standard action
Range: 50 ft.
Effect: 50-ft.-radius spread centered on you
Duration: 1 minute/level
Saving Throw: Will negates (harmless)
Spell Resistance: No
With the blessing of your deity, you bolster your allies' aim with an exhortation.
This spell grants your allies within the spread a +2 morale bonus on ranged attack rolls.
*/
//:://////////////////////////////////////////////
//:: Created By: Tenjac
//:: Created On:
//:://////////////////////////////////////////////
#include "prc_sp_func"
#include "prc_add_spell_dc"
void main()
{
location lLoc = GetLocation(OBJECT_SELF);
object oItem;
object oTarget = GetFirstObjectInShape(SHAPE_SPHERE, FeetToMeters(50.0), lLoc, FALSE, OBJECT_TYPE_CREATURE);
{
oItem = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oTarget);
if(GetIsReactionTypeFriendly(oTarget)
{
if GetWeaponRanged(oItem)
{
SPApplyEffectToObject(oTarget, EffectAttackIncrease(2), 6.0f)
}
}
oTarget = GetNextObjectInShape(SHAPE_SPHERE, FeetToMeters(50.0), lLoc, FALSE, OBJECT_TYPE_CREATURE);
}