Class: Battle::Effects::Ability::GorillaTactics

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

Overview

Class describing the Gorilla Tactics ability effect

Instance Method Summary collapse

Instance Method Details

#atk_modifier ⇒ Float, Integer

Give the atk modifier over given to the Pokemon with this effect

Returns:

  • (Float, Integer) —

    multiplier



1493
1494
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1493

def atk_modifier
end

#on_move_disabled_check(user, move) ⇒ Proc?

Function called when we try to check if the user cannot use a move

Parameters:

Returns:

  • (Proc, nil)


1489
1490
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1489

def on_move_disabled_check(user, move)
end

#on_move_prevention_user(user, targets, move) ⇒ :prevent?

Function called when we try to use a move as the user (returns :prevent if user fails)

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the move cannot continue



1483
1484
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 1483

def on_move_prevention_user(user, targets, move)
end