Class: Battle::Effects::Ability::ChangingMoveType
- Inherits:
-
BoostingMoveType
- Object
- Ability
- BoostingMoveType
- Battle::Effects::Ability::ChangingMoveType
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Changing Move Type ability effect
Constant Summary collapse
- TYPES_OVERWRITES =
List of type overwrite
Hash.new(:normal)
Constants inherited from BoostingMoveType
BoostingMoveType::POWER_INCREASE, BoostingMoveType::POWER_INCREASE_CONDITION, BoostingMoveType::TYPE_CONDITION
Class Method Summary collapse
-
.register(db_symbol, type_overwrite, multiplier = 1.3, &block) {|user, target, move| ... }
Register a ChangingMoveType ability.
Instance Method Summary collapse
-
#on_move_type_change(user, target, move, type) ⇒ Integer?
Function called when we try to get the definitive type of a move.
Methods inherited from BoostingMoveType
Class Method Details
.register(db_symbol, type_overwrite, multiplier = 1.3, &block) {|user, target, move| ... }
Register a ChangingMoveType ability
377 378 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 377 def register(db_symbol, type_overwrite, multiplier = 1.3, &block) end |
Instance Method Details
#on_move_type_change(user, target, move, type) ⇒ Integer?
Function called when we try to get the definitive type of a move
365 366 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 365 def on_move_type_change(user, target, move, type) end |