public override bool Prepare(Monster m) { if (modifiedAbility.IsNull) { if (m.Abilities.Count == 0) { Complain(3); return false; } else { InputSelectAbility d = new InputSelectAbility(m); if (d.ShowDialog() == DialogResult.OK) { if (d.GetSelectedAbility().IsNull) { Complain(3); return false; } else { modifiedAbility = d.GetSelectedAbility(); return true; } } else { return false; } } } else { return true; } }
public override void SetupParent(MonsterAbility parent) { modifiedAbility = (AbstractAbility)parent; }