Class: Battle::Effects::Ability::ScreenCleaner

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

Overview

Class describing the Screen Cleaner ability effect

Constant Summary collapse

WALLS =

List of the screen effects to remove

Returns:

  • (Array<Symbol>)
%i[light_screen reflect aurora_veil]

Instance Method Summary collapse

Instance Method Details

#on_switch_event(handler, who, with)

Function called when a Pokemon has actually switched with another one

Parameters:



3112
3113
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3112

def on_switch_event(handler, who, with)
end

#suppr_reflect(bank)

Function called to suppr the reflect effect

Parameters:

  • bank (Integer) —

    bank of the battlers



3116
3117
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3116

def suppr_reflect(bank)
end