Class: Battle::Effects::Ability::VoltAbsorb

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

Overview

Class describing the Volt Absorb ability

Direct Known Subclasses

EarthEater, WaterAbsorb

Instance Method Summary collapse

Instance Method Details

#check_move_type?(move) ⇒ Boolean

Function that checks the type of the move

Parameters:

Returns:

  • (Boolean)


3953
3954
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3953

def check_move_type?(move)
end

#factor ⇒ Integer

Returns the factor used for healing

Returns:

  • (Integer)


3957
3958
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3957

def factor
end

#on_move_prevention_target(user, target, move) ⇒ Boolean

Function called when we try to check if the effect changes the definitive priority of the move

Parameters:

Returns:

  • (Boolean) —

    if the target is immune to the move



3948
3949
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3948

def on_move_prevention_target(user, target, move)
end