Class: Battle::Effects::Ability::RunAway

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

Overview

Class describing the Run Away ability effect

Instance Method Summary collapse

Instance Method Details

#on_flee_passthrough(handler, target) ⇒ :passthrough?

Function called when testing if a battler can flee regardless of the prevention

Parameters:

Returns:

  • (:passthrough, nil) —

    if :passthrough, can_flee? will return true without checking flee_prevention



3046
3047
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3046

def on_flee_passthrough(handler, target)
end