Class: Battle::Effects::Ability::NeutralizingGas

Inherits:
Ability
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_04_Ability_Effects.rb

Overview

Class describing the Neutralizing Gas ability effect

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, db_symbol) ⇒ NeutralizingGas

Create a new Neutralizing Gas effect

Parameters:



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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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

Returns:

  • (Integer)


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)

Parameters:



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

Parameters:



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

Parameters:



2265
2266
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2265

def on_switch_event(handler, who, with)
end