Made a complicated defensive holy recently and something in it is not firing correctly. If anyone else's eye catches something wrong would you let me know please?
- - - Updated - - -
Got it running I think. More testing...
Rich (BB code):
holyshit5=/if (${Me.Combat} && ${Target.Distance}<75 && ${Me.PctEndurance}>2 && (${Target.Named} || ${Me.XTarget}>1 || ${Spawn[id ${MATarget}].Level}>=${Math.Calc[${Me.Level}+3]})) ${If[${Me.CombatAbilityReady[Dichotomic Shield]}, /Disc 49003 , ${If[${Me.CombatAbilityReady[${Spell[Stout Defense].RankName}]},/disc ${Spell[${Spell[Stout Defense].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Last Stand Discipline].RankName}]},/disc ${Spell[${Spell[Last Stand Discipline].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Pain Doesn't Hurt].RankName}]},/disc ${Spell[${Spell[Pain Doesn't Hurt].RankName}].ID},${If[${Cast.Ready[Armor of Darkened Runes]},/disc ${Spell[${Spell[Armor of Darkened Runes].RankName}].ID},/alt act 2011]}]}]}]}]}
- - - Updated - - -
Got it running I think. More testing...
Rich (BB code):
holyshit5=/if (${Me.Combat} && ${Target.Distance}<75 && ${Window[CombatAbilityWnd].Child[CAW_CombatEffectLabel].Text.Equal[No Effect]} && ${Me.PctEndurance}>2 && (${Target.Named} || ${Me.XTarget}>1 || ${Spawn[id ${MATarget}].Level}>=${Math.Calc[${Me.Level}+2]})) /docommand ${If[${Me.CombatAbilityReady[Dichotomic Shield]}, /disc ${Spell[${Spell[Dichotomic Shield].RankName}].ID} , ${If[${Me.CombatAbilityReady[${Spell[Stout Defense].RankName}]},/disc ${Spell[${Spell[Stout Defense].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Last Stand Discipline].RankName}]},/disc ${Spell[${Spell[Last Stand Discipline].RankName}].ID},${If[${Me.CombatAbilityReady[${Spell[Pain Doesn't Hurt].RankName}]},/disc ${Spell[${Spell[Pain Doesn't Hurt].RankName}].ID},${If[${Cast.Ready[Armor of Darkened Runes]},/disc ${Spell[${Spell[Armor of Darkened Runes].RankName}].ID},/alt act 2011]}]}]}]}]}

