Class: Battle::Effects::Ability::ApplyStatusToMoveTarget

Inherits:
Ability
  • Object
show all
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

PoisonTouch, ToxicChain

Instance Method Summary collapse

Instance Method Details

#display_message(handler, hp, target, launcher, skill) ⇒ String?

Get the message text

Parameters:

Returns:



506
507
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 506

def display_message(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:



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

Returns:

  • (Float)


510
511
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 510

def rate
end

#status ⇒ Symbol

Return the status to apply

Returns:

  • (Symbol)


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

Parameters:

Returns:

  • (Boolean)


493
494
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 493

def status_appliable?(handler, hp, launcher, target, skill)
end