Class: Battle::Move::MultiHit

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

Overview

Class describing a move hitting multiple time

Direct Known Subclasses

ScaleShot, ThreeHit, TripleKick, TwoHit, WaterShuriken

Constant Summary collapse

MULTI_HIT_CHANCES =

Number of hit randomly picked from that array

Returns:

  • (Array<Integer>)
[2, 2, 2, 3, 3, 5, 4, 3]

Instance Method Summary collapse

Methods inherited from Basic

#effect_working?

Instance Method Details

#deal_damage(user, actual_targets)

Function that deals the damage to the pokemon

Parameters:



1228
1229
# File 'docs/5_Battle_10_Move.rb', line 1228

def deal_damage(user, actual_targets)
end

#last_hit? ⇒ Boolean

Check if this the last hit of the move Don't call this method before deal_damage method call

Returns:

  • (Boolean)


1233
1234
# File 'docs/5_Battle_10_Move.rb', line 1233

def last_hit?
end

#multi_hit? ⇒ Boolean

Tells if the move hits multiple times

Returns:

  • (Boolean)


1237
1238
# File 'docs/5_Battle_10_Move.rb', line 1237

def multi_hit?
end