Class: Battle::Move::BurnUp

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

Overview

Implement the Burn Up move

Constant Summary collapse

TEXTS_IDS =

Text of the loss of our type after launching the attack

{burn_up: [:parse_text_with_pokemon, 59, 1856], double_shock: [:parse_text_with_pokemon, 66, 1606]}

Instance Method Summary collapse

Methods inherited from BasicWithSuccessfulEffect

#effect_working?

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



2219
2220
# File 'docs/5_Battle_10_Move.rb', line 2219

def deal_effect(user, actual_targets)
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



2214
2215
# File 'docs/5_Battle_10_Move.rb', line 2214

def move_usable_by_user(user, targets)
end

#turn_count

Return the number of turns the effect works

Returns:

  • Integer



2223
2224
# File 'docs/5_Battle_10_Move.rb', line 2223

def turn_count
end