Class: Battle::Effects::Ability::PastelVeil

Inherits:
Ability
  • Object
show all
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

Constructor Details

#initialize(logic, target, db_symbol) ⇒ PastelVeil

Create a new FlowerGift effect

Parameters:



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

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



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

Parameters:



2474
2475
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2474

def on_switch_event(handler, who, with)
end