Class: Battle::Move::TripleArrows

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

Overview

Class managing Triple Arrows move (Gen 9) High critical hit ratio comes from the Studio critical_rate field. Status (flinch) and stats (Defense drop) are rolled independently.

Constant Summary collapse

STATUS_CHANCE =

Probability of applying the flinch status (0-100)

Returns:

  • (Integer)
30
STATS_CHANCE =

Probability of applying the Defense drop (0-100)

Returns:

  • (Integer)
50

Instance Method Summary collapse

Methods inherited from BasicWithSuccessfulEffect

#effect_working?

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#deal_stats(user, actual_targets)

Function that deals the stat to the pokemon

Parameters:



7405
7406
# File 'docs/5_Battle_10_Move.rb', line 7405

def deal_stats(user, actual_targets)
end

#deal_status(user, actual_targets)

Function that deals the status condition to the pokemon

Parameters:



7400
7401
# File 'docs/5_Battle_10_Move.rb', line 7400

def deal_status(user, actual_targets)
end