From 72fceebcb0bfe3d0ba53ad9d406935b6f09c966f Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Mon, 23 Jan 2023 11:15:54 +0100 Subject: [PATCH] Fix repels not being removed from bag --- P3D/Pokemon/Items/Repels/RepelItem.vb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/P3D/Pokemon/Items/Repels/RepelItem.vb b/P3D/Pokemon/Items/Repels/RepelItem.vb index 3e7202229..9c1e95304 100644 --- a/P3D/Pokemon/Items/Repels/RepelItem.vb +++ b/P3D/Pokemon/Items/Repels/RepelItem.vb @@ -10,13 +10,14 @@ Public Overrides Sub Use() If Core.Player.RepelSteps <= 0 Then - Me.RemoveItem() Player.Temp.LastUsedRepel = ID - SoundManager.PlaySound("Use_Repel", False) - Screen.TextBox.Show(Core.Player.Name & " used a~" & Name & ".", {}, True, True) Core.Player.RepelSteps = RepelSteps PlayerStatistics.Track("[42]Repels used", 1) + Dim t As String = Core.Player.Name & " used a~" & Name & "." + t &= RemoveItem() + Screen.TextBox.Show(t, {}, True, True) + CType(CurrentScreen, NewInventoryScreen).LoadItems() Else Screen.TextBox.Show("The Repel is still~in effect.", {}, True, True) End If