Class: Battle::Effects::Item::MirrorHerb

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

Overview

Class describing the Mirror Herb item effect

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, db_symbol) ⇒ MirrorHerb

Create a new item effect

Parameters:



1313
1314
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1313

def initialize(logic, target, db_symbol)
end

Instance Method Details

#activated? ⇒ Boolean

Check if the item effect is activated

Returns:

  • (Boolean)


1317
1318
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1317

def activated?
end

#on_post_action_event(logic, scene, battlers)

Function called at the end of an action

Parameters:



1333
1334
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1333

def on_post_action_event(logic, scene, battlers)
end

#on_stat_change_post(handler, stat, power, target, launcher, skill) ⇒ Integer?

Function called when a stat_change has been applied

Parameters:

Returns:

  • (Integer, nil) —

    if integer, it will change the power



1327
1328
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 1327

def on_stat_change_post(handler, stat, power, target, launcher, skill)
end