Class: Battle::Effects::Ability::Defiant

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

Overview

Class describing the Defiant ability effect

Direct Known Subclasses

Competitive

Instance Method Summary collapse

Instance Method Details

#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



988
989
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 988

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

#stat_changed ⇒ symbol

Stat changed by the ability

Returns:

  • (symbol) —

    of the stat



992
993
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 992

def stat_changed
end