allow forms in the @battle.wild() script
This commit is contained in:
parent
bae3a28431
commit
f4691fe20d
|
@ -127,12 +127,23 @@
|
|||
End If
|
||||
Else
|
||||
If argument.Length > 0 Then
|
||||
Dim ID As Integer = int(argument.GetSplit(0))
|
||||
Dim ID As Integer = int(argument.GetSplit(0).Split(CChar("_"))(0))
|
||||
Dim AD As String = ""
|
||||
If argument.GetSplit(0).Contains(CChar("_")) Then
|
||||
AD = argument.GetSplit(0).Split(CChar("_"))(1)
|
||||
End If
|
||||
Dim Level As Integer = int(argument.GetSplit(1))
|
||||
|
||||
If AD IsNot "" Then
|
||||
p = Pokemon.GetPokemonByID(ID, AD)
|
||||
p.Generate(Level, True, AD)
|
||||
Else
|
||||
p = Pokemon.GetPokemonByID(ID)
|
||||
p.Generate(Level, True)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
Dim args() As String = argument.Split(CChar(","))
|
||||
|
||||
For i = 0 To args.Length - 1
|
||||
|
|
Loading…
Reference in New Issue