Class: Battle::Effects::Ability::Telepathy

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

Overview

Class describing the Telepathy ability A Pokemon with Telepathy avoids damaging moves used by its allies.

Instance Method Summary collapse

Instance Method Details

#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



3775
3776
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 3775

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