private void UpdateDrop() { foreach (var temp in _battle.State.Data.Enemies.ToArray()) { if (temp.Value.Status == UnitBattleStatus.DeadInTernNoDropped) { _contextLogic.SetContextImpact(-1, -1, false); _impactLogic.ExecuteImpact(_explorer.GetMob(temp.Value.StaticId).ImpactWin); temp.Value.Status = UnitBattleStatus.DeadInTern; foreach (var buffData in temp.Value.Buffs) { var buff = _battle.Static.Buffs[buffData.Key]; _impactLogic.ExecuteImpact(buff.ImpactDie); } //var position = _battle.State.Data.StackMobs[_battle.State.Data.CurrentWave].MobData[temp.Key].Position; LogicLog.MobDeath(temp.Value.StaticId, _battle.State.Data.CurrentWave, 0); } } foreach (var temp in _battle.State.Data.Allies) { if (temp.Value.Status == UnitBattleStatus.DeadInTernNoDropped) { temp.Value.Status = UnitBattleStatus.DeadInTern; foreach (var buffData in temp.Value.Buffs) { var buff = _battle.Static.Buffs[buffData.Key]; _impactLogic.ExecuteImpact(buff.ImpactDie); } LogicLog.DeathUnit(temp.Value.StaticId); } } }