Sub Main
:loop
/if (!${Target.CleanName.Equal[charname]}) /tar charname
/if (${Target.PctHPs}<75) {
/cast 1
/delay 5
:castloop
/if (${Me.Casting.ID}) /goto :castloop
}
/if (${Me.PctHPs}<70) {
/tar ${Me}
/delay 3
/cast 1
/delay 5
:castloop
/if (${Me.Casting.ID}) /goto :castloop
}
/delay 5
/if (${Me.PctMana}<90 && !${NearestSpawn[npc radius 50].ID} && !${Me.Sitting}) /sit
/goto :loop
/return