Don't append repeating items into pokemon when mega evolve.

This commit is contained in:
jianmingyong 2016-10-09 03:07:23 +08:00
parent 78f17a28cd
commit 36010dfa46
1 changed files with 3 additions and 1 deletions

View File

@ -1464,7 +1464,9 @@ Public Class Pokemon
Dim chance As Integer = CInt(Value.GetSplit(0))
Dim itemID As Integer = CInt(Value.GetSplit(1))
WildItems.Add(chance, itemID)
If Not WildItems.ContainsKey(chance) Then
WildItems.Add(chance, itemID)
End If
Case "tradevalue"
Me.TradeValue = CInt(Value)
End Select