Class: Battle::Move::PhotonGeyser

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

Overview

Note:

This move becomes physical if the user's Atk is higher than its SpA; otherwise, it stays special. It considers the user's stat stage modifiers but not other effects like held items and abilities.

Class describing the Photon Geyser move

Instance Method Summary collapse

Methods inherited from Basic

#deal_damage, #effect_working?

Instance Method Details

#damages(user, target) ⇒ Integer

Note:
Note:

The formula is the following: (((((((Level * 2 / 5) + 2) * BasePower * [Sp]Atk / 50) / [Sp]Def) * Mod1) + 2) * CH * Mod2 * R / 100) * STAB * Type1 * Type2 * Mod3)

Method calculating the damages done by the actual move

Parameters:

Returns:

  • (Integer)


5176
5177
# File 'docs/5_Battle_10_Move.rb', line 5176

def damages(user, target)
end

#physical? ⇒ Boolean

Is the skill physical?

Returns:

  • (Boolean)


5180
5181
# File 'docs/5_Battle_10_Move.rb', line 5180

def physical?
end

#special? ⇒ Boolean

Is the skill special?

Returns:

  • (Boolean)


5184
5185
# File 'docs/5_Battle_10_Move.rb', line 5184

def special?
end