create @pokemon.removeattackid(int,int)

This commit is contained in:
darkfire006 2019-10-06 22:49:06 -05:00
parent e13fce85b0
commit 65a577c375

View File

@ -169,6 +169,20 @@
p.Attacks.RemoveAt(attackIndex) p.Attacks.RemoveAt(attackIndex)
End If End If
End If End If
Case "removeattackid"
Dim Index As Integer = int(argument.GetSplit(0, ","))
Dim attackId As Integer = int(argument.GetSplit(1, ","))
If Core.Player.Pokemons.Count - 1 >= Index Then
Dim p As Pokemon = Core.Player.Pokemons(Index)
For a = 0 To (p.Attacks.Count - 1)
If p.Attacks(a).ID = attackId Then
p.Attacks.RemoveAt(a)
Exit For
End If
Next
End If
Case "clearattacks" Case "clearattacks"
Dim Index As Integer = int(argument) Dim Index As Integer = int(argument)