PRC8/nwn/nwnprc/trunk/newspellbook/shd_fund_mystic.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

40 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
21/02/19 by Stratovarius
Mystic Reflections
Fundamental
Level/School: 0/Divination
Range: Close
Target: One creature
Duration: Instantaneous
You peer slightly into the Plane of Shadow and can see the distortion in an objects shadow-self caused by the presence of magic.
This mystery lists all magical effects on a target creature.
*/
#include "shd_inc_shdfunc"
#include "shd_mysthook"
void main()
{
object oShadow = OBJECT_SELF;
// Get infinite uses at this level
if (GetLevelByClass(CLASS_TYPE_SHADOWCASTER, oShadow) >= 14) IncrementRemainingFeatUses(oShadow, 23668);
if(!ShadPreMystCastCode()) return;
object oTarget = PRCGetSpellTargetObject();
struct mystery myst = EvaluateMystery(oShadow, oTarget, METASHADOW_NONE);
if(myst.bCanMyst)
{
effect eAOE = GetFirstEffect(oTarget);
while(GetIsEffectValid(eAOE))
{
FloatingTextStringOnCreature(GetName(oTarget)+" is under the effect of "+GetMysteryName(GetEffectSpellId(eAOE)), oShadow, FALSE);
// Get next effect on the target
eAOE = GetNextEffect(oTarget);
}// end while - Effect loop
}
}