mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-26 23:34:58 +02:00
Merge pull request #2 from CaptainSegis/CaptainSegis-patch-1
Fix leech seed HP calculations
This commit is contained in:
commit
dae6c53a18
@ -4148,7 +4148,12 @@ endthisround:
|
||||
|
||||
If .FieldEffects.OwnLeechSeed > 0 Then 'LeechSeed
|
||||
If .OwnPokemon.HP > 0 And .OppPokemon.HP > 0 And .OppPokemon.HP < .OppPokemon.MaxHP Then
|
||||
Dim loseHP As Integer = CInt(Math.Ceiling( .OwnPokemon.HP / 8))
|
||||
Dim loseHP As Integer = CInt(Math.Ceiling( .OwnPokemon.MaxHP / 8))
|
||||
Dim currHP As Integer = .OwnPokemon.HP
|
||||
|
||||
If loseHP > currHP
|
||||
loseHP = currHP
|
||||
End If
|
||||
|
||||
Dim addHP As Integer = loseHP
|
||||
If Not .OppPokemon.Item Is Nothing Then
|
||||
|
Loading…
x
Reference in New Issue
Block a user