PRC8/nwn/trunk/spells/sp_luminousA.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

25 lines
878 B
Plaintext

///////////////////////////////////////////////////
// Luminous Armor HB
// sp_luminousA.nss
////////////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oPC = GetAreaOfEffectCreator();
location lLoc = GetLocation(oPC);
object oTarget = MyFirstObjectInShape(SHAPE_SPHERE, 6.096f, lLoc, TRUE, OBJECT_TYPE_CREATURE);
while(GetIsObjectValid(oTarget))
{
if(!GetIsReactionTypeFriendly(oTarget))
{
if(GetAttackTarget(oTarget) == oPC)
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAttackDecrease(4), oTarget, 6.0f);
}
}
oTarget = MyNextObjectInShape(SHAPE_SPHERE, 6.096f, lLoc, TRUE, OBJECT_TYPE_CREATURE);
}
}