Class: Battle::Effects::Item::FocusSash

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

Overview

Class describing the Focus Sash item effect

Instance Method Summary collapse

Instance Method Details

#on_damage_prevention(handler, hp, target, launcher, skill) ⇒ :prevent, ...

Function called when a damage_prevention is checked

Parameters:

Returns:

  • (:prevent, Integer, nil) —

    :prevent if the damage cannot be applied, Integer if the hp variable should be updated



862
863
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 862

def on_damage_prevention(handler, hp, target, launcher, skill)
end

#on_post_damage(handler, hp, target, launcher, skill)

Function called after damages were applied (post_damage, when target is still alive)

Parameters:



870
871
# File 'docs/5_Battle_06_Effects_05_Item_Effects.rb', line 870

def on_post_damage(handler, hp, target, launcher, skill)
end