Class: Battle::Effects::Ability::PastelVeil
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Pastel Veil ability effect
Constant Summary collapse
- POISON =
Poison status
%i[poison toxic]
Instance Method Summary collapse
-
#initialize(logic, target, db_symbol) ⇒ PastelVeil
constructor
Create a new FlowerGift effect.
-
#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?
Function called when a status_prevention 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) ⇒ PastelVeil
Create a new FlowerGift effect
2459 2460 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2459 def initialize(logic, target, db_symbol) end |
Instance Method Details
#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?
Function called when a status_prevention is checked
2468 2469 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2468 def on_status_prevention(handler, status, target, launcher, skill) end |
#on_switch_event(handler, who, with)
Function called when a Pokemon has actually switched with another one
2474 2475 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2474 def on_switch_event(handler, who, with) end |