static void OnBuffRemoved(FightActor actor, Buff buff) { if ((buff as StateBuff)?.State.Id == (uint)SpellStatesEnum.ZOMBI_74) { actor.Die(); } }
private void MoveOldFighter(FightActor oldFighter) { MapPoint mapPoint = oldFighter.Position.Point.GetAdjacentCells((short c) => base.Fight.IsCellFree(base.Map.Cells[(int)c])).FirstOrDefault <MapPoint>(); if (mapPoint != null) { oldFighter.Position.Cell = base.Map.Cells[(int)mapPoint.CellId]; } else { oldFighter.Die(); } }