Skip to content

Commit

Permalink
Merge y sacar errores y tests con fail
Browse files Browse the repository at this point in the history
  • Loading branch information
aaavril committed Nov 7, 2024
1 parent 1e73c63 commit 421e375
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 32 deletions.
4 changes: 1 addition & 3 deletions src/Library/Domain/Facade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ public List<string> ShowMoves(string playerDisplayName)
{
movesList.Add(move.Name);
}

movesList.Add(pokemon.SpecialMove.Name);


string pokemonMoves = $"{pokemon.Name}: {string.Join(", ", movesList)}";

pokemonsWithMoves.Add(pokemonMoves);
Expand Down
12 changes: 1 addition & 11 deletions src/Library/Domain/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,7 @@ public int GetIndexOfMoveInActivePokemon(string moveDisplayName)
/// <param name="index">Índice del movimiento en la lista de movimientos del Pokémon activo.</param>
public void ActivateMoveInActivePokemon(int index)
{
this.ActiveMove = this.ActivePokemon.Moves[index];
}

/// <summary>
/// Activa el movimiento especial del Pokémon activo.
/// </summary>
/// <param name="specialMoveDisplayName">Nombre del movimiento especial a activar.</param>
public void ActivateSpecialMove(string specialMoveDisplayName)
{
this.ActiveMove = this.ActivePokemon.SpecialMove;
// turn.SpecialMoveIsAvailable = false; // Descomentar si el movimiento especial debe estar disponible condicionalmente
//this.ActiveMove = this.ActivePokemon.Moves[index];
}

public Item UseItem(string itemName)
Expand Down
23 changes: 5 additions & 18 deletions src/Library/Library.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 421e375

Please sign in to comment.