Target last (smart-ish) by Brozan (Syal)
Related: Snippet
Description: This tries to keep a last target and not FS yourself in the face
1overhead "Targeting last hostile!"
2@setvar! checkLastTarget lasttarget
3@setvar! checkSelf self
4
5if noto last = hostile and checkLastTarget != checkSelf
6 if targetexists harmful or targetexists neutral
7 target last
8 elseif targetexists beneficial
9 while targetexists
10 overhead "GOOD SPELL ON CURSOR" 33
11 wait 50
12 endwhile
13 else
14 overhead "No Cursor Existed" 25
15 endif
16elseif checkLastTarget = checkSelf
17 overhead "You would really kill yourself???" 20
18else
19 overhead "wtf are we doing here???" 17
20endif