Class: Battle::Effects::Ability::Contrary

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

Overview

Class describing the Contrary ability effect

Instance Method Summary collapse

Instance Method Details

#name ⇒ Symbol

Name of the effect

Returns:

  • (Symbol)


839
840
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 839

def name
end

#on_stat_change(handler, stat, power, target, launcher, skill) ⇒ Integer?

Function called when a stat_change is about to be applied

Parameters:

Returns:

  • (Integer, nil) —

    if integer, it will change the power



835
836
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 835

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