mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Fix no full restore message at full hp
This commit is contained in:
parent
a62c78e9ee
commit
b3becd5653
@ -1009,8 +1009,12 @@
|
|||||||
Case 15 'Max Potion
|
Case 15 'Max Potion
|
||||||
Me.GainHP(p.MaxHP, False, False, BattleScreen, BattleScreen.Trainer.Name & " used a Max Potion on " & p.GetDisplayName() & "!", "item:maxpotion")
|
Me.GainHP(p.MaxHP, False, False, BattleScreen, BattleScreen.Trainer.Name & " used a Max Potion on " & p.GetDisplayName() & "!", "item:maxpotion")
|
||||||
Case 14 'Full Restore
|
Case 14 'Full Restore
|
||||||
|
Dim Message As String = ""
|
||||||
|
If p.HP >= p.MaxHP Then
|
||||||
|
Message = BattleScreen.Trainer.Name & " used a Full Restore on " & p.GetDisplayName() & "!"
|
||||||
|
End If
|
||||||
Me.GainHP(p.MaxHP, False, False, BattleScreen, BattleScreen.Trainer.Name & " used a Full Restore on " & p.GetDisplayName() & "!", "item:fullrestore")
|
Me.GainHP(p.MaxHP, False, False, BattleScreen, BattleScreen.Trainer.Name & " used a Full Restore on " & p.GetDisplayName() & "!", "item:fullrestore")
|
||||||
Me.CureStatusProblem(False, False, BattleScreen, "", "item:fullrestore")
|
Me.CureStatusProblem(False, False, BattleScreen, Message, "item:fullrestore")
|
||||||
p.RemoveVolatileStatus(Pokemon.VolatileStatus.Confusion)
|
p.RemoveVolatileStatus(Pokemon.VolatileStatus.Confusion)
|
||||||
Case 38 'Full Heal
|
Case 38 'Full Heal
|
||||||
Me.CureStatusProblem(False, False, BattleScreen, BattleScreen.Trainer.Name & " used a Full Heal on " & p.GetDisplayName() & "!", "item:fullheal")
|
Me.CureStatusProblem(False, False, BattleScreen, BattleScreen.Trainer.Name & " used a Full Heal on " & p.GetDisplayName() & "!", "item:fullheal")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user