Class: Battle::Effects::Ability::ApplyStatusToMoveTarget
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Apply Status To Move Target ability effect (such as Poison Touch, Toxic Chain)
Direct Known Subclasses
Instance Method Summary collapse
-
#display_message(handler, hp, target, launcher, skill) ⇒ String?
Get the message text.
-
#on_post_damage(handler, hp, target, launcher, skill)
Function called after damages were applied (post_damage, when target is still alive).
-
#rate ⇒ Float
Number between 0 & 1 telling how much chance we have.
-
#status ⇒ Symbol
Return the status to apply.
-
#status_appliable?(handler, hp, launcher, target, skill) ⇒ Boolean
Check if conditions to apply status are valid.
Instance Method Details
#display_message(handler, hp, target, launcher, skill) ⇒ String?
Get the message text
506 507 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 506 def (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)
484 485 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 484 def on_post_damage(handler, hp, target, launcher, skill) end |
#rate ⇒ Float
Number between 0 & 1 telling how much chance we have
510 511 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 510 def rate end |
#status ⇒ Symbol
Return the status to apply
497 498 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 497 def status end |
#status_appliable?(handler, hp, launcher, target, skill) ⇒ Boolean
Check if conditions to apply status are valid
493 494 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 493 def status_appliable?(handler, hp, launcher, target, skill) end |