private void Action(Competitor Character) { bool Return = false; if (Character.IsVertigo == true) { Character.GetType().GetProperty("IsVertigo").SetValue(Character, false); Return = true; } if (Character.IsParalysis == true) { Character.GetType().GetProperty("IsParalysis").SetValue(Character, false); Return = true; } if (Return == true) { return; } bool HasSkills = Character.IsCharmed != true; if (Character.IsCharmed == true) { Character.GetType().GetProperty("CharmedTime").SetValue(Character, ((dynamic)Character.GetType().GetProperty("CharmedTime").GetValue(Character)) - 1); } if (HasSkills) { PreparatoryPhase(Character); } else { TextResult += $"{Character.GetName()}跳过攻击前阶段\n"; } AttackingPhase(Character, HasSkills); if (Another(Character).Health == 0) { return; } if (HasSkills) { EndPhase(Character); } else { TextResult += $"{ Character.GetName()}跳过攻击后阶段\n"; } if (Character.CharmedTime == 0) { Character.GetType().GetProperty("IsCharmed").SetValue(Character, false); } }