Esempio n. 1
0
 static void OnBuffRemoved(FightActor actor, Buff buff)
 {
     if ((buff as StateBuff)?.State.Id == (uint)SpellStatesEnum.ZOMBI_74)
     {
         actor.Die();
     }
 }
Esempio n. 2
0
        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();
            }
        }