Added "removed" folder
This commit is contained in:
56
_removed/x0_s0_spikegroen.nss
Normal file
56
_removed/x0_s0_spikegroen.nss
Normal file
@@ -0,0 +1,56 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Spike Growth: On Enter
|
||||
//:: x0_s0_spikegroEN.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
All creatures within the AoE take 1d4 acid damage
|
||||
per round
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Brent Knowles
|
||||
//:: Created On: September 6, 2002
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Patch 1.70
|
||||
|
||||
- flying and incorporeal creatures are immune
|
||||
*/
|
||||
|
||||
#include "70_inc_spells"
|
||||
#include "x0_i0_spells"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
aoesDeclareMajorVariables();
|
||||
object oTarget = GetEnteringObject();
|
||||
float fDelay = GetRandomDelay(1.0, 2.2);
|
||||
if(spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, aoe.Creator))
|
||||
{
|
||||
//Fire cast spell at event for the target
|
||||
SignalEvent(oTarget, EventSpellCastAt(aoe.AOE, spell.Id));
|
||||
//Spell resistance check
|
||||
if(!spellsIsFlying(oTarget) && !GetCreatureFlag(oTarget, CREATURE_VAR_IS_INCORPOREAL) && !MyResistSpell(aoe.Creator, oTarget, fDelay))
|
||||
{
|
||||
int nDam = MaximizeOrEmpower(8, 1, spell.Meta);
|
||||
|
||||
effect eDam = EffectDamage(nDam, DAMAGE_TYPE_PIERCING);
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_ACID_S);
|
||||
//Apply damage and visuals
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget));
|
||||
DelayCommand(fDelay, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget));
|
||||
|
||||
// * only apply a slow effect from this spell once
|
||||
if(!GetHasSpellEffect(spell.Id, oTarget))
|
||||
{
|
||||
//Make a Reflex Save to avoid the effects of the movement hit.
|
||||
if(!MySavingThrow(SAVING_THROW_REFLEX, oTarget, spell.DC, SAVING_THROW_TYPE_NONE, aoe.Creator, fDelay))
|
||||
{
|
||||
effect eSpeed = EffectMovementSpeedDecrease(50);
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSpeed, oTarget, HoursToSeconds(24));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user