Clear out experimental .35 files

Clear out experimental .35 files
This commit is contained in:
Jaysyn904
2024-02-11 13:04:14 -05:00
parent 2112b92e24
commit 618cd42b82
22356 changed files with 0 additions and 1248956 deletions

View File

@@ -1,36 +0,0 @@
#include "prc_inc_spells"
void main()
{
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
if (!X2PreSpellCastCode()) return;
PRCSetSchool(SPELL_SCHOOL_ABJURATION);
// Declare major variables
object oTarget = PRCGetSpellTargetObject();
// Signal the spell cast at event
PRCSignalSpellEvent(oTarget, FALSE);
int nCasterLevel = PRCGetCasterLevel(OBJECT_SELF);
// DR 10/-.
effect eStone = EffectDamageReduction(10, DAMAGE_POWER_ENERGY);
eStone = EffectLinkEffects(eStone, EffectVisualEffect(VFX_DUR_PROT_SHADOW_ARMOR));
// Get duration, 1 round / level unless extended.
float fDuration = PRCGetMetaMagicDuration(RoundsToSeconds(nCasterLevel));
// Build the list of fancy visual effects to apply when the spell goes off.
effect eVFX = EffectVisualEffect(VFX_IMP_DEATH_WARD);
// Remove existing effect, if any.
PRCRemoveEffectsFromSpell(oTarget, GetSpellId());
// Apply effects and VFX to target
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStone, oTarget, fDuration,TRUE,-1,nCasterLevel);
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget);
PRCSetSchool();
}