//::///////////////////////////////////////////////
//:: Drangonari Acid Fog
//:: avlis2_drangonari_acid_fog.nss
//:: Copyright (c) 2006 Avlis2: Crosstreams
//:://////////////////////////////////////////////
/*
    All creatures within the AoE take 2d6 acid damage
    per round and upon entering if they fail a Fort Save
    or their movement is halved.
	
	Only a custom OnEnter script is needed to ensure
	that the correct DC and effets are applied. 
	The standard Acid Fog AoE heartbeat and OnExit scripts 
	should work fine.	
*/
//:://////////////////////////////////////////////
//:: Created By: Gavin Barron (Tesh)
//:: Created On: December 24, 2006, 0130 GMT
//:://////////////////////////////////////////////


void main()
{


    //Declare major variables including Area of Effect Object
    effect eAOE = EffectAreaOfEffect(AOE_PER_FOGACID, "avlis2_drang_acid_fog_on_enter");
    location lTarget = GetSpellTargetLocation();
	//Set to 1 as Drangonari can only invoke this as a frist level caster
    int nDuration = 1;
    //Create an instance of the AOE Object using the Apply Effect function
    ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eAOE, lTarget, RoundsToSeconds(nDuration));
}