Added "removed" folder
This commit is contained in:
60
_removed/x2_s2_epicward.nss
Normal file
60
_removed/x2_s2_epicward.nss
Normal file
@@ -0,0 +1,60 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Epic Ward
|
||||
//:: X2_S2_EpicWard.
|
||||
//:: Copyright (c) 2003 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Makes the caster invulnerable to damage
|
||||
(equals damage reduction 50/+20)
|
||||
Lasts 1 round per level
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Georg Zoeller
|
||||
//:: Created On: Aug 12, 2003
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "70_inc_spells"
|
||||
#include "nw_i0_spells"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-06-23 by GeorgZ
|
||||
If you want to make changes to all spells,
|
||||
check x2_inc_spellhook.nss to find out more
|
||||
|
||||
*/
|
||||
|
||||
if (!X2PreSpellCastCode())
|
||||
{
|
||||
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
//Declare major variables
|
||||
spellsDeclareMajorVariables();
|
||||
int nDuration = spell.Level / 2;
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(spell.Target, EventSpellCastAt(spell.Caster, spell.Id, FALSE));
|
||||
int nLimit = 50*nDuration;
|
||||
//Check for metamagic extend
|
||||
if(spell.Meta == METAMAGIC_EXTEND) //Duration is +100%
|
||||
{//1.70 added in order to allow metamagic override feature
|
||||
nDuration = nDuration * 2;
|
||||
}
|
||||
effect eDur = EffectVisualEffect(495);
|
||||
effect eProt = EffectDamageReduction(15, DAMAGE_POWER_PLUS_SIX, nLimit);
|
||||
effect eLink = EffectLinkEffects(eDur, eProt);
|
||||
eLink = EffectLinkEffects(eLink, eDur);
|
||||
|
||||
// * Brent, Nov 24, making extraodinary so cannot be dispelled
|
||||
eLink = ExtraordinaryEffect(eLink);
|
||||
|
||||
RemoveEffectsFromSpell(spell.Target, spell.Id);
|
||||
//Apply the armor bonuses and the VFX impact
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, spell.Target, RoundsToSeconds(nDuration));
|
||||
}
|
Reference in New Issue
Block a user