mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Fixed Pomeg Berry glitch
This commit is contained in:
@@ -1071,9 +1071,9 @@ class Pokemon
|
|||||||
stats[s.id] = calcStat(base_stats[s.id], this_level, this_IV[s.id], @ev[s.id], nature_mod[s.id])
|
stats[s.id] = calcStat(base_stats[s.id], this_level, this_IV[s.id], @ev[s.id], nature_mod[s.id])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
hpDiff = @totalhp - @hp
|
hp_difference = stats[:HP] - @totalhp
|
||||||
@totalhp = stats[:HP]
|
@totalhp = stats[:HP]
|
||||||
@hp = @totalhp - hpDiff
|
self.hp = [@hp + hp_difference, 1].max if @hp > 0 || hp_difference > 0
|
||||||
@attack = stats[:ATTACK]
|
@attack = stats[:ATTACK]
|
||||||
@defense = stats[:DEFENSE]
|
@defense = stats[:DEFENSE]
|
||||||
@spatk = stats[:SPECIAL_ATTACK]
|
@spatk = stats[:SPECIAL_ATTACK]
|
||||||
|
|||||||
Reference in New Issue
Block a user