Class: Battle::Effects::Ability::NeutralizingGas
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Neutralizing Gas ability effect
Instance Method Summary collapse
-
#activated? ⇒ Boolean
(also: #activated)
If Neutralizing Gas effect is currently activated by this pokemon.
-
#activated_this_turn? ⇒ Boolean
Tell if the ability has been activated this turn.
-
#activated_turn ⇒ Integer
Return the turn when the ability was activated.
-
#initialize(logic, target, db_symbol) ⇒ NeutralizingGas
constructor
Create a new Neutralizing Gas effect.
-
#on_post_damage_death(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive).
-
#on_pre_ability_change(handler, db_symbol, target, launcher, skill)
Function called when a pre_ability_change is checked.
-
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one.
Constructor Details
#initialize(logic, target, db_symbol) ⇒ NeutralizingGas
Create a new Neutralizing Gas effect
2259 2260 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2259 def initialize(logic, target, db_symbol) end |
Instance Method Details
#activated? ⇒ Boolean Also known as: activated
If Neutralizing Gas effect is currently activated by this pokemon
2285 2286 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2285 def activated? end |
#activated_this_turn? ⇒ Boolean
Tell if the ability has been activated this turn
2294 2295 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2294 def activated_this_turn? end |
#activated_turn ⇒ Integer
Return the turn when the ability was activated
2290 2291 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2290 def activated_turn end |
#on_post_damage_death(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive)
2273 2274 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2273 def on_post_damage_death(handler, hp, target, launcher, skill) end |
#on_pre_ability_change(handler, db_symbol, target, launcher, skill)
Function called when a pre_ability_change is checked
2281 2282 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2281 def on_pre_ability_change(handler, db_symbol, target, launcher, skill) end |
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one
2265 2266 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2265 def on_switch_event(handler, who, with) end |