IF
  See(NearestEnemyOf(Myself))
  StateCheck(Myself,STATE_INVISIBLE)
  Global("DjinniCloudkill","LOCALS",0)
THEN
  RESPONSE #100
    ForceSpell(Myself,WIZARD_CLOUDKILL)
    SetGlobal("DjinniCloudkill","LOCALS",1)
END

IF
  See(NearestEnemyOf(Myself))
  StateCheck(Myself,STATE_INVISIBLE)
THEN
  RESPONSE #100
    AttackReevaluate(NearestEnemyOf(Myself),15)
END

IF
  See(NearestEnemyOf(Myself))
THEN
  RESPONSE #100
    ForceSpell(Myself,WIZARD_INVISIBILITY)
END

