diff --git a/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb b/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb index e26e47de2..b5267a731 100644 --- a/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb +++ b/P3D/World/ActionScript/V2/ScriptCommands/DoPokemon.vb @@ -78,11 +78,7 @@ Dim catchMethod As String = "random reason" If commas > 1 Then - Dim catchMethodLocalization As String = argument.GetSplit(2) - If argument.GetSplit(2).StartsWith("") Then - catchMethodLocalization = Localization.GetString(catchMethodLocalization.Remove(0, " 3 Then - Dim catchLocationLocalization As String = argument.GetSplit(4) - If argument.GetSplit(4).StartsWith("") Then - catchLocationLocalization = Localization.GetString(catchLocationLocalization.Remove(0, " 5 And argument.GetSplit(6) <> "" And argument.GetSplit(6) <> "" Then - catchTrainer = argument.GetSplit(6) + catchTrainer = ScriptCommander.Parse(argument.GetSplit(6)).ToString() End If Dim heldItem As String = 0.ToString @@ -915,11 +907,7 @@ Dim catchMethod As String = "random reason" If commas > 1 Then - Dim catchMethodLocalization As String = argument.GetSplit(2) - If argument.GetSplit(2).StartsWith("") Then - catchMethodLocalization = Localization.GetString(catchMethodLocalization.Remove(0, " 3 Then - Dim catchLocationLocalization As String = argument.GetSplit(4) - If argument.GetSplit(4).StartsWith("") Then - catchLocationLocalization = Localization.GetString(catchLocationLocalization.Remove(0, " 5 And argument.GetSplit(6) <> "" And argument.GetSplit(6) <> "" Then - catchTrainer = argument.GetSplit(6) + catchTrainer = ScriptCommander.Parse(argument.GetSplit(6)).ToString() End If Dim heldItem As String = 0.ToString