public void UnitCorpsed(FormationUnit deadUnit) { if (deadUnit.Character.Loot != null) { BattleLoot.AddRange(deadUnit.Character.Loot); } deadUnit.Character.GetStatusEffect(StatusType.Guarded).ResetStatus(); deadUnit.Character.GetStatusEffect(StatusType.Guard).ResetStatus(); Round.OrderedUnits.RemoveAll(unit => unit == deadUnit); if (deadUnit.Character.IsMonster) { RaidSceneManager.Raid.KilledMonsters.Add(deadUnit.Character.Name); } }
public void UnitDestroyed(FormationUnit deadUnit) { if (deadUnit.Character.Loot != null) { BattleLoot.AddRange(deadUnit.Character.Loot); } Controls.RemoveAll(record => record.PrisonerUnit == deadUnit); deadUnit.Character.GetStatusEffect(StatusType.Guarded).ResetStatus(); deadUnit.Character.GetStatusEffect(StatusType.Guard).ResetStatus(); ReturnId(deadUnit.CombatInfo.CombatId); Round.OrderedUnits.RemoveAll(unit => unit == deadUnit); if (deadUnit.Character.IsMonster) { RaidSceneManager.Raid.KilledMonsters.Add(deadUnit.Character.Name); } }