Commit ffe844c5 authored by NuriYuri's avatar NuriYuri
Browse files

Fix switch issue with friend trainer in battle

parent c9b27eca
......@@ -184,7 +184,7 @@ module GamePlay
display_message(parse_text(20, 34))
elsif pokemon.dead?
display_message(parse_text(20, 33, ::PFM::Text::PKNICK[1] => pokemon.given_name))
elsif @index < $game_temp.vs_type
elsif pokemon.position.between?(0, $game_temp.vs_type)
display_message(parse_text(20, 32, ::PFM::Text::PKNICK[1] => pokemon.given_name))
else
@return_data = @index
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment