Class: Battle::Effects::Ability::WindRider

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

Overview

Class describing the Wind Rider ability

Instance Method Summary collapse

Instance Method Details

#on_move_prevention_target(user, target, move) ⇒ Boolean

Function called when we try to check if the target evades the move

Parameters:

Returns:

  • (Boolean) —

    if the target is immune to the move



4177
4178
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4177

def on_move_prevention_target(user, target, move)
end

#on_post_action_event(logic, scene, battlers)

Function called at the end of an action

Parameters:



4183
4184
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4183

def on_post_action_event(logic, scene, battlers)
end

#on_switch_event(handler, who, with)

Function called when a Pokemon has actually switched with another one

Parameters:



4189
4190
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4189

def on_switch_event(handler, who, with)
end

#trigger_effect

Function grouping the actions related to Wind Rider's activation



4192
4193
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 4192

def trigger_effect
end