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

40 lines
1.2 KiB
Plaintext
Raw 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
}
}