Class: Battle::Move::PhotonGeyser
- 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
-
#damages(user, target) ⇒ Integer
Method calculating the damages done by the actual move.
-
#physical? ⇒ Boolean
Is the skill physical?.
-
#special? ⇒ Boolean
Is the skill special?.
Methods inherited from Basic
#deal_damage, #effect_working?
Instance Method Details
#damages(user, target) ⇒ Integer
Note:
: I used the 4th Gen formula : https://www.smogon.com/dp/articles/damage_formula
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
5176 5177 |
# File 'docs/5_Battle_10_Move.rb', line 5176 def damages(user, target) end |
#physical? ⇒ Boolean
Is the skill physical?
5180 5181 |
# File 'docs/5_Battle_10_Move.rb', line 5180 def physical? end |
#special? ⇒ Boolean
Is the skill special?
5184 5185 |
# File 'docs/5_Battle_10_Move.rb', line 5184 def special? end |