Class: Battle::Effects::Item::ShedShell

Inherits:
Item
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_05_Item_Effects.rb

Overview

Class describing the Shed Shell item effect

Instance Method Summary collapse

Instance Method Details

#on_switch_passthrough(handler, target, skill, reason) ⇒ :passthrough?

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

Parameters:

Returns:

  • (:passthrough, nil) —

    if :passthrough, can_switch? will return true without checking switch_prevention



1488
1489
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1488

def on_switch_passthrough(handler, target, skill, reason)
end