Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,22 @@
/*
Detect Magic
*/
#include "prc_inc_s_det"
void main()
{
if(!X2PreSpellCastCode()) return;
PRCSetSchool(SPELL_SCHOOL_DIVINATION);
object oCaster = OBJECT_SELF;
int nLevel = PRCGetCasterLevel(oCaster);
float fDuration = TurnsToSeconds(nLevel) * 10;
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_DETECT), oCaster, fDuration);
DetectMagicAura(0, GetLocation(oCaster), VFX_BEAM_MIND, FeetToMeters(60.0));
PRCSetSchool();
}