Class: Battle::Move::PainSplit

Inherits:
Move
  • Object
show all
Defined in:
docs/5_Battle_10_Move.rb

Overview

Move that share HP between targets

Instance Method Summary collapse

Instance Method Details

#adjust_hp(target, average_hp)

Adjusts the HP of the target based on the calculated average HP

Parameters:



5069
5070
# File 'docs/5_Battle_10_Move.rb', line 5069

def adjust_hp(target, average_hp)
end

#bypass_chance_of_hit?(_user, _target) ⇒ Boolean

Check if the move bypass chance of hit and cannot fail

Parameters:

Returns:

  • (Boolean)


5055
5056
# File 'docs/5_Battle_10_Move.rb', line 5055

def bypass_chance_of_hit?(_user, _target)
end

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



5060
5061
# File 'docs/5_Battle_10_Move.rb', line 5060

def deal_effect(user, actual_targets)
end

#message ⇒ String

Get the message

Returns:

  • (String) —

    the text parsed and ready to be displayed



5064
5065
# File 'docs/5_Battle_10_Move.rb', line 5064

def message
end