'== included in the AI scripts file =='
s.controller.vars.init("inert", 1)
'never say die.
'coincidentally, never die.
s.armour = s.stat.armour

s.speed = 0

'If take enough damage fast enough, switch on
If s.recent_damage >= 1' And s.controller.vars.get("active") = 0
	s.controller.vars.set("active", 1)
	s.controller.resetTimer("activeTimer", 3500, 0)
EndIf


'if it's on, count down to turn off
If s.controller.vars.get("active") = 1
	s.recent_damage = 0
	
	If s.controller.hasTimerTicked("activeTimer")
		s.hitTween = 1
		s.controller.vars.set("active", 0)
	EndIf
EndIf

'sparkle If on
'If s.controller.vars.get("active") = 1 Then
'	s.echarge = .6
'EndIf