Class: Battle::Effects::Item::MentalHerb

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

Overview

Class describing the Mental Herb item effect

Constant Summary collapse

MENTAL_EFFECTS =

List the db_symbol for every Mental effect

Returns:

  • (Array<Symbol>)
%i[attract encore taunt torment heal_block disable]

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, db_symbol) ⇒ MentalHerb

Create a new item effect

Parameters:



1249
1250
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1249

def initialize(logic, target, db_symbol)
end

Instance Method Details

#apply_common_effects_with_fling(scene, target, launcher = nil, skill = nil)

Apply the common effects of the item with Fling move effect

Parameters:



1262
1263
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1262

def apply_common_effects_with_fling(scene, target, launcher = nil, skill = nil)
end

#on_post_action_event(logic, scene, battlers)

Function called at the end of an action

Parameters:



1255
1256
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1255

def on_post_action_event(logic, scene, battlers)
end