/macro evade
Code: Select all
|** evade.mac
Evade macro for the lazy monk/rogue ;)
Just make a simple hotbutton with /macro evade
Made this so that if attacked was turned of before evade,
it would not be turned back on after evade. Mostly to
avoid enrage and such.
**|
#event FDFAIL " has fallen to the ground"
Sub Main
/declare varFailed global
| /filter macros enhanced
/if "$combat"=="TRUE" {
/declare l0 local
/varset l0 $target(id)
}
/attack off
:Loop
/if "$char(class)"=="Monk" /if n $char(ability,"Feign Death")>0 /doability "Feign Death"
/if "$char(class)"=="Rogue" /if n $char(ability,"Hide")>0 /doability "Hide"
/if "$char(class)"=="Monk" /doevents
/if "$char(class)"=="Monk" /if n @varFailed==1 {
/varset varFailed 0
/stand
/goto :Loop
}
/if "$char(class)"=="Monk" /stand
/if n @l0>0 /if n $target(id)==@l0 /attack on
/return
Sub Event_FDFAIL
/varset varFailed 1
/return