Class: Battle::Effects::Ability::Symbiosis
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Symbiosis ability
Constant Summary collapse
- DEFERRED_MOVES =
List of moves that cause the talent to proceed after the target has taken damage
%i[fling natural_gift]
- INVALID_BE_METHOD =
List of methods that make the target invalid
%i[s_knock_off s_thief]
Instance Method Summary collapse
-
#initialize(logic, target, db_symbol) ⇒ Symbiosis
constructor
Create a new Symbiosis effect.
-
#on_post_damage(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive).
-
#on_post_item_change(handler, db_symbol, target, launcher, skill)
Function called when a post_item_change is checked.
-
#on_pre_item_change(handler, db_symbol, target, launcher, skill) ⇒ :prevent?
Function called when a pre_item_change is checked.
Constructor Details
#initialize(logic, target, db_symbol) ⇒ Symbiosis
Create a new Symbiosis effect
3603 3604 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3603 def initialize(logic, target, db_symbol) end |
Instance Method Details
#on_post_damage(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive)
3628 3629 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3628 def on_post_damage(handler, hp, target, launcher, skill) end |
#on_post_item_change(handler, db_symbol, target, launcher, skill)
Function called when a post_item_change is checked
3620 3621 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3620 def on_post_item_change(handler, db_symbol, target, launcher, skill) end |
#on_pre_item_change(handler, db_symbol, target, launcher, skill) ⇒ :prevent?
Function called when a pre_item_change is checked
3612 3613 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3612 def on_pre_item_change(handler, db_symbol, target, launcher, skill) end |