/call CheckForAdds CheckForCombat
/if (${Select[${Role},tank,pullertank]}) {
| If tank is assisting puller and in chase mode
/if (${WhoToChase.NotEqual[${Me}]} && ${ChaseAssist}) /call DoWeChase
/if (${ReturnToCamp} && ((!${MobCount} && ${Math.Distance[${CampYLoc},${CampXLoc}]}>15) || (${MobCount}==1 && ${AggroTargetID} && ${Math.Distance[${CampYLoc},${CampXLoc}]}>75))) /call DoWeMove 1 checkforcombat
/if (${MobCount} && ${AggroTargetID}) /continue
/if (${BuffsOn}) {
/for GlobalIndex 1 to ${BuffsSize}
/if (${Buffs[${GlobalIndex}].Arg[2,|].NotEqual[end]}) /break
/if (${Me.PctEndurance}<=${Buffs[${GlobalIndex}].Arg[3,|]} && (${Me.CombatAbilityReady[${Buffs[${GlobalIndex}].Arg[1,|]}]} || ${Me.AltAbilityReady[${Buffs[${GlobalIndex}].Arg[1,|]}]})) /call CheckEndurance "${Buffs[${GlobalIndex}].Arg[1,|]}" ${Buffs[${GlobalIndex}].Arg[3,|]} ${Buffs[${GlobalIndex}].Arg[4,|]}
/next GlobalIndex
}
/if (${DebugCombat}) /echo \atDEBUG CheckForCombat MobCount: ${MobCount} AggroTargetID: ${AggroTargetID} ChainPull: ${ChainPull} ${SkipCombat} \agLine#: ${Macro.CurLine}
/if (${TankTimer}) /continue
}