Class: Battle::Effects::Ability::FlashFire

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

Overview

Class describing the Flash Fire ability effect

Defined Under Namespace

Modules: OnResetStates

Instance Method Summary collapse

Instance Method Details

#mod1_multiplier(user, target, move) ⇒ Float, Integer

Give the move mod1 mutiplier (before the +2 in the formula)

Parameters:

Returns:

  • (Float, Integer) —

    multiplier



1209
1210
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1209

def mod1_multiplier(user, target, move)
end

#on_damage_prevention(handler, hp, target, launcher, skill) ⇒ :prevent, ...

Function called when a damage_prevention is checked

Parameters:

Returns:

  • (:prevent, Integer, nil) —

    :prevent if the damage cannot be applied, Integer if the hp variable should be updated



1175
1176
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1175

def on_damage_prevention(handler, hp, target, launcher, skill)
end

#on_stat_decrease_prevention(handler, stat, target, launcher, skill) ⇒ :prevent?

Function called when a stat_decrease_prevention is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the stat decrease cannot apply



1184
1185
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1184

def on_stat_decrease_prevention(handler, stat, target, launcher, skill)
end

#on_stat_increase_prevention(handler, stat, target, launcher, skill) ⇒ :prevent?

Function called when a stat_increase_prevention is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the stat increase cannot apply



1193
1194
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1193

def on_stat_increase_prevention(handler, stat, target, launcher, skill)
end

#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?

Function called when a status_prevention is checked

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



1202
1203
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1202

def on_status_prevention(handler, status, target, launcher, skill)
end

#reset

Reset the boost when leaving battle



1212
1213
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1212

def reset
end