PRC8/nwn/nwnprc/trunk/spells/sp_luminousA.nss
Jaysyn904 d87fe14826 Further file organization
Further file organization
2023-08-23 22:11:00 -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);
}
}