Class: Battle::Effects::Ability::Opportunist

Inherits:
Ability
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_04_Ability_Effects.rb

Overview

Class describing the Opportunist ability effect

Constant Summary collapse

COPIED_EFFECTS =

Effects that can be copied by Opportunist

Returns:

  • (Hash{Symbol => Hash})
{focus_energy: {effect_class: Effects::FocusEnergy, text_id: 1047}, dragon_cheer: {effect_class: Effects::DragonCheer, text_id: 1047}}

Instance Method Summary collapse

Constructor Details

#initialize(logic, target, db_symbol) ⇒ Opportunist

Create a new Opportunist effect

Parameters:



2332
2333
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2332

def initialize(logic, target, db_symbol)
end

Instance Method Details

#activated? ⇒ Boolean

Returns if the ability is currently activated.

Returns:

  • (Boolean) —

    if the ability is currently activated



2335
2336
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2335

def activated?
end

#on_post_action_event(logic, scene, battlers)

Function called at the end of an action

Parameters:



2351
2352
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2351

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



2345
2346
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2345

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