mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
Refactoring of code relating to switching, effect damage and effects that trigger after a move is used
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
class PokeBattle_DamageState
|
||||
attr_accessor :initialHP
|
||||
attr_accessor :typeMod # Type effectiveness
|
||||
attr_accessor :unaffected
|
||||
attr_accessor :protected
|
||||
@@ -25,16 +24,15 @@ class PokeBattle_DamageState
|
||||
def initialize; reset; end
|
||||
|
||||
def reset
|
||||
@initialHP = 0
|
||||
@typeMod = Effectiveness::INEFFECTIVE
|
||||
@unaffected = false
|
||||
@protected = false
|
||||
@missed = false
|
||||
@invulnerable = false
|
||||
@magicCoat = false
|
||||
@magicBounce = false
|
||||
@totalHPLost = 0
|
||||
@fainted = false
|
||||
@typeMod = Effectiveness::INEFFECTIVE
|
||||
@unaffected = false
|
||||
@protected = false
|
||||
@missed = false
|
||||
@invulnerable = false
|
||||
@magicCoat = false
|
||||
@magicBounce = false
|
||||
@totalHPLost = 0
|
||||
@fainted = false
|
||||
resetPerHit
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user