예제 #1
0
 public override void ExecuteCard()
 {
     foreach (Tools.Direction dir in new Tools.Direction[]
     {
         Tools.Direction.NorthEast,
         Tools.Direction.NorthWest,
         Tools.Direction.SouthEast,
         Tools.Direction.SouthWest
     })
     {
         MapSquare temp = startSquare;
         for (int i = 0; i < level; i++)
         {
             if (temp.HasNeighbour(dir))
             {
                 temp = temp.GetNeighbour(dir);
                 if (temp.unit && Tools.UnitIsEnemy(temp.unit))
                 {
                     actions.Push(new DamageAction(unit, cardColor, temp.unit));
                 }
             }
             else
             {
                 break;
             }
         }
     }
     base.ExecuteCard();
 }
예제 #2
0
 public override void ExecuteCard()
 {
     Tools.Direction[] directions = { Tools.Direction.North, Tools.Direction.East, Tools.Direction.West, Tools.Direction.South };
     foreach (Tools.Direction direction in directions)
     {
         MapSquare temp = GameMaster.Instance.currentPlayer.character.mapSquare;
         while (temp.HasNeighbour(direction))
         {
             temp = temp.GetNeighbour(direction);
             if (temp.unit != null && temp.unit is Champion)
             {
                 temp.unit.TakeDamage();
             }
         }
     }
     base.ExecuteCard();
 }