mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-29 08:45:02 +02:00
Only play poison sound with poisoned pokémon
This commit is contained in:
parent
77cfefd598
commit
cf437a1e88
@ -1883,7 +1883,16 @@
|
||||
PoisonSteps -= 4
|
||||
End If
|
||||
If PoisonAmount > 0 Then
|
||||
SoundManager.PlaySound("OverworldPoison")
|
||||
Dim PlayPoisonSound As Boolean = False
|
||||
For i = 0 To Core.Player.Pokemons.Count - 1
|
||||
If Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.Poison OrElse Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.BadPoison Then
|
||||
PlayPoisonSound = True
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
If PlayPoisonSound = True Then
|
||||
SoundManager.PlaySound("OverworldPoison")
|
||||
End If
|
||||
For i = 0 To Core.Player.Pokemons.Count - 1
|
||||
If Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.Poison OrElse Core.Player.Pokemons(i).Status = Pokemon.StatusProblems.BadPoison Then
|
||||
If Core.Player.Pokemons(i).Ability IsNot Ability.GetAbilityByID(17) Then
|
||||
|
Loading…
x
Reference in New Issue
Block a user