Class: Battle::Move::Bide

Inherits:
BasicWithSuccessfulEffect show all
Defined in:
docs/5_Battle_10_Move.rb

Overview

Bide Move

Instance Method Summary collapse

Methods inherited from BasicWithSuccessfulEffect

#effect_working?

Methods inherited from Basic

#effect_working?

Instance Method Details

#deal_damage(user, actual_targets)

Function that deals the damage to the pokemon

Parameters:



2093
2094
# File 'docs/5_Battle_10_Move.rb', line 2093

def deal_damage(user, actual_targets)
end

#definitive_types(user, target) ⇒ Array<Integer>

Get the types of the move with 1st type being affected by effects

Parameters:

Returns:

  • (Array<Integer>) —

    list of types of the move



2088
2089
# File 'docs/5_Battle_10_Move.rb', line 2088

def definitive_types(user, target)
end

#move_usable_by_user(user, targets) ⇒ Boolean

Note:

Thing that prevents the move from being used should be defined by :move_prevention_user Hook

Function that tests if the user is able to use the move

Parameters:

Returns:

  • (Boolean) —

    if the procedure can continue



2100
2101
# File 'docs/5_Battle_10_Move.rb', line 2100

def move_usable_by_user(user, targets)
end

#multi_turn? ⇒ Boolean

Tell if the move will take two or more turns

Returns:

  • (Boolean)


2082
2083
# File 'docs/5_Battle_10_Move.rb', line 2082

def multi_turn?
end