Class: Battle::Move::StoneAxe

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

Overview

Class describing the Stone Axe move Adds a layer of Stealth Rocks to the target if it lands.

Instance Method Summary collapse

Methods inherited from BasicWithSuccessfulEffect

#effect_working?

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#calc_factor(target) ⇒ Integer, Float

Calculate the multiplier needed to get the damage factor of the Stealth Rock

Parameters:

Returns:

  • (Integer, Float)


3790
3791
# File 'docs/5_Battle_10_Move.rb', line 3790

def calc_factor(target)
end

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



3785
3786
# File 'docs/5_Battle_10_Move.rb', line 3785

def deal_effect(user, actual_targets)
end