mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
side stairs + wonderguard
This commit is contained in:
@@ -1060,8 +1060,10 @@ class Pokemon
|
||||
end
|
||||
end
|
||||
hpDiff = @totalhp - @hp
|
||||
@totalhp = stats[:HP]
|
||||
@hp = @totalhp - hpDiff
|
||||
#@totalhp = stats[:HP]
|
||||
@totalhp= self.ability == :WONDERGUARD ? 1 : stats[:HP]
|
||||
calculated_hp = @totalhp - hpDiff
|
||||
@hp = calculated_hp > 0 ? calculated_hp: 0
|
||||
@attack = stats[:ATTACK]
|
||||
@defense = stats[:DEFENSE]
|
||||
@spatk = stats[:SPECIAL_ATTACK]
|
||||
|
||||
Reference in New Issue
Block a user