mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-28 16:24:45 +02:00
Fixed Toxic Orb ans Flame Orb effects
This commit is contained in:
parent
f4980e079b
commit
da9e8095b0
@ -5067,7 +5067,7 @@
|
|||||||
|
|
||||||
'ABILITY SHIT/ITEM SHIT GOES HERE:
|
'ABILITY SHIT/ITEM SHIT GOES HERE:
|
||||||
|
|
||||||
If .OwnPokemon.HP > 0 And .OwnPokemon.Status <> Pokemon.StatusProblems.Burn Then
|
If .OwnPokemon.HP > 0 And .OwnPokemon.Status = Pokemon.StatusProblems.None Then
|
||||||
If Not .OwnPokemon.Item Is Nothing Then
|
If Not .OwnPokemon.Item Is Nothing Then
|
||||||
If .OwnPokemon.Item.Name.ToLower() = "flame orb" And .FieldEffects.CanUseItem(True) = True And BattleScreen.FieldEffects.CanUseOwnItem(True, BattleScreen) = True Then
|
If .OwnPokemon.Item.Name.ToLower() = "flame orb" And .FieldEffects.CanUseItem(True) = True And BattleScreen.FieldEffects.CanUseOwnItem(True, BattleScreen) = True Then
|
||||||
InflictBurn(True, True, BattleScreen, "Flame orb inflicts a burn!", "flameorb")
|
InflictBurn(True, True, BattleScreen, "Flame orb inflicts a burn!", "flameorb")
|
||||||
@ -5075,7 +5075,7 @@
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If .OwnPokemon.HP > 0 And .OwnPokemon.Status <> Pokemon.StatusProblems.Poison And .OwnPokemon.Status <> Pokemon.StatusProblems.BadPoison Then
|
If .OwnPokemon.HP > 0 And .OwnPokemon.Status = Pokemon.StatusProblems.None Then
|
||||||
If Not .OwnPokemon.Item Is Nothing Then
|
If Not .OwnPokemon.Item Is Nothing Then
|
||||||
If .OwnPokemon.Item.Name.ToLower() = "toxic orb" And .FieldEffects.CanUseItem(True) = True And BattleScreen.FieldEffects.CanUseOwnItem(True, BattleScreen) = True Then
|
If .OwnPokemon.Item.Name.ToLower() = "toxic orb" And .FieldEffects.CanUseItem(True) = True And BattleScreen.FieldEffects.CanUseOwnItem(True, BattleScreen) = True Then
|
||||||
InflictPoison(True, True, BattleScreen, True, "Toxic orb inflicts a poisoning!", "toxicorb")
|
InflictPoison(True, True, BattleScreen, True, "Toxic orb inflicts a poisoning!", "toxicorb")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user