Class: Battle::Effects::Ability::CudChew

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

Overview

Class describing the Cud Chew ability effect

Instance Method Summary collapse

Instance Method Details

#on_pre_item_change(handler, db_symbol, target, launcher, skill) ⇒ :prevent?

Function called when a pre_item_change is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the item change cannot be applied



885
886
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 885

def on_pre_item_change(handler, db_symbol, target, launcher, skill)
end

#turn_count ⇒ Integer

Return the turn countdown before the effect proc (including the current one)

Returns:

  • (Integer)


889
890
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 889

def turn_count
end