//--------------—
// 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())
{
return;
}
// End of Spell Cast Hook

//--------------—
// This spell no longer stacks. If there is one of that type, thats ok
//--------------—
if (GetHasSpellEffect(GetSpellId(),oTarget))
{
RemoveSpellEffects(GetSpellId(), OBJECT_SELF, oTarget);
}

//--------------—
// Set the VFX to be non dispelable, because the acid is not magic
//--------------—
eDur = ExtraordinaryEffect(eDur);
// * Dec 2003- added the reaction check back in
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, OBJECT_SELF))
{
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, GetSpellId()));