Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
107
_removed files/x2_s2_blindspd.nss
Normal file
107
_removed files/x2_s2_blindspd.nss
Normal file
@@ -0,0 +1,107 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Haste
|
||||
//:: NW_S0_Haste.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Gives the targeted creature one extra partial
|
||||
action per round.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: May 29, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
// Modified March 2003: Remove Expeditious Retreat effects
|
||||
|
||||
#include "x0_i0_spells"
|
||||
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-06-20 by Georg
|
||||
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
|
||||
object oTarget = GetSpellTargetObject();
|
||||
|
||||
if (GetHasSpellEffect(SPELL_EXPEDITIOUS_RETREAT, oTarget) == TRUE)
|
||||
{
|
||||
RemoveSpellEffects(SPELL_EXPEDITIOUS_RETREAT, OBJECT_SELF, oTarget);
|
||||
}
|
||||
|
||||
if (GetHasSpellEffect(SPELL_HASTE, oTarget) == TRUE)
|
||||
{
|
||||
RemoveSpellEffects(SPELL_HASTE, OBJECT_SELF, oTarget);
|
||||
}
|
||||
|
||||
if (GetHasSpellEffect(SPELL_MASS_HASTE, oTarget) == TRUE)
|
||||
{
|
||||
RemoveSpellEffects(SPELL_MASS_HASTE, OBJECT_SELF, oTarget);
|
||||
}
|
||||
|
||||
if (GetHasSpellEffect(GetSpellId(), oTarget) == TRUE)
|
||||
{
|
||||
RemoveSpellEffects(GetSpellId(), OBJECT_SELF, oTarget);
|
||||
}
|
||||
|
||||
effect eHaste = EffectHaste();
|
||||
effect eVis = EffectVisualEffect(460);
|
||||
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
|
||||
effect eLink = EffectLinkEffects(eHaste, eDur);
|
||||
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, GetSpellId(), FALSE));
|
||||
//Check for metamagic extension
|
||||
|
||||
// Apply effects to the currently selected target.
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(10));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
||||
|
||||
effect eEffect;
|
||||
eEffect = EffectModifyAttacks(2);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
|
||||
|
||||
eEffect = EffectACIncrease(4, AC_DODGE_BONUS);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
|
||||
|
||||
eEffect = EffectSavingThrowIncrease(SAVING_THROW_ALL, 4, SAVING_THROW_TYPE_ALL);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
|
||||
|
||||
eEffect = EffectAttackIncrease(2);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
|
||||
|
||||
eEffect = EffectDamageIncrease(DAMAGE_BONUS_1d8, DAMAGE_TYPE_BLUDGEONING);
|
||||
|
||||
eEffect = SupernaturalEffect(eEffect);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user