Scriptname nAreaControllerScript extends activemagiceffect

actor player
objectreference obj

Event OnEffectStart(Actor akTarget, Actor akCaster)
player = Game.getPlayer()
RegisterForUpdate(3.0)
;debug.notification("Spell Init")
Endevent

Event OnUpdate()
If xDisabled.Value == 0 && !IsBrawling()
	obj = player.placeatme(nObj)
	nAoE.cast(obj)
	utility.wait(0.1)
	obj.delete()
Endif
Endevent

bool function IsBrawling()
bool getbrawling=false
	unregisterforupdate()
	If DGIntimidateQuest.IsRunning() || C00.GetStage() == 20
		debug.trace("<DDA> Brawl. Pending...")
		getbrawling = true
	Endif
return getbrawling
endfunction

Activator Property nObj  Auto  
SPELL Property nAoE  Auto  
GlobalVariable Property xDisabled Auto

Quest Property DGIntimidateQuest  Auto  

Quest Property C00  Auto  
