public static void ManageBattleStateInput(Player player, Enemy enemy, string playerInput) { playerInput = playerInput.ToLower(); //Remove later string test = ""; switch (playerInput) { case "attack": AttackCommand(); Console.WriteLine("You attack"); enemy.CurrentHealth -= player.AttackCommand(enemy, ref test); break; case "cast fire": if (player.PlayerSpells.Contains(World.FindSpellByID(1))) { Console.WriteLine("You cast fire"); //enemy.CurrentHealth -= player.SpellCommand(enemy, World.FindSpellByID(1)); } else { Console.WriteLine("You don't have fire!"); } break; case "cast thunder": if (player.PlayerSpells.Contains(World.FindSpellByID(2))) { Console.WriteLine("You cast thunder"); //enemy.CurrentHealth -= player.SpellCommand(enemy, World.FindSpellByID(2)); } else { Console.WriteLine("You don't have thunder!"); } break; case "view stats": Console.WriteLine(enemy.ToString()); break; case "run away": if (player.RunCommand(enemy)) { Console.WriteLine("You run away"); Player.PlayerState = Player.State.Travel; } else { Console.WriteLine("You fail to run away"); } break; default: Console.WriteLine("Invalid input for battle command!"); break; } }