private void btnAddTarget_Click(object sender, EventArgs e) { if (CombatHolder._makingAttackChars.Any(A => A.CombatStuff.CombatName == cboBoxAttackers.SelectedItem.ToString())) { SingleAttack frmCreator = new SingleAttack(CombatHolder._makingAttackChars.Find(TChar => TChar.CombatStuff.CombatName == cboBoxAttackers.SelectedItem.ToString()), CombatHolder._inCombatChars, this, CombatHolder._inCombatChars.First()); frmCreator.Show(); } }
public Master_Attacker() { InitializeComponent(); foreach (Character attacker in CombatHolder._makingAttackChars) { cboBoxAttackers.Items.Add(attacker.CombatStuff.CombatName); if (attacker.CombatStuff.targets == null || attacker.CombatStuff.targets.Count == 0) { attacker.CombatStuff.targets.Add(CombatHolder._inCombatChars.First()); } foreach (Character target in attacker.CombatStuff.targets) { SingleAttack frmCreator = new SingleAttack(attacker, CombatHolder._inCombatChars, this, target); frmCreator.Show(); } /*if (TacoFollower.CombatStuff.CurrentlyInCombat == true) * {//currently depreciated * * }*/ } }