bool hasCTABeenFound = false; for(int tries=0;tries<10;tries++) { if(game.Hero.GetItemAt(EquipmentLocation.LeftHand) != null) if(game.Hero.GetItemAt(EquipmentLocation.LeftHand).Runeword == BaseRuneword.GetByName("Call to Arms")) hasCTABeenFound = true; if(game.Hero.GetItemAt(EquipmentLocation.RightHand) != null) if(game.Hero.GetItemAt(EquipmentLocation.RightHand).Runeword == BaseRuneword.GetByName("Call to Arms")) hasCTABeenFound = true; if(hasCTABeenFound) break; game.SwitchWeaponSlotWait(); }