IF
	Global("MADDIE_0","GLOBAL",1)
THEN
	RESPONSE #100
		ApplySpellRES("s1maddie",Myself) // No such index
		SetGlobal("MADDIE_1","GLOBAL",1)
		SetGlobal("MADDIE_0","GLOBAL",2)
END

IF
	Global("MADDIE_0","GLOBAL",3)
THEN
	RESPONSE #100
		SetGlobal("MADDIE_1","GLOBAL",100)
		SetGlobal("MADDIE_0","GLOBAL",3)
		DestroySelf()
END

IF
	Global("MADDIE_0","GLOBAL",4)
THEN
	RESPONSE #100
		SetGlobal("MADDIE_1","GLOBAL",1)
		SetGlobal("MADDIE_0","GLOBAL",2)
		MoveGlobalObject("MADDIE",Myself)
		DestroySelf()
END

IF
	GlobalGT("MADDIE_0","GLOBAL",5)
	GlobalTimerExpired("s_maddie","GLOBAL")
THEN
	RESPONSE #100
		SetGlobal("MADDIE_1","GLOBAL",1)
		SetGlobal("MADDIE_0","GLOBAL",2)
		MoveGlobalObject("MADDIE",Myself)
		DestroySelf()
END

IF
	True()
THEN
	RESPONSE #100
		DestroySelf()
END


