Class: Battle::Effects::Ability::ShieldDust

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

Overview

Class describing the Shield Dust ability

Instance Method Summary collapse

Instance Method Details

#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



3238
3239
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3238

def on_stat_decrease_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



3247
3248
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3247

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