Class: Battle::Move::Feint
- Inherits:
-
BasicWithSuccessfulEffect
- Object
- Battle::Move
- Basic
- BasicWithSuccessfulEffect
- Battle::Move::Feint
- Defined in:
- scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 Feint.rb
Overview
Feint has an increased power if the target used Protect or Detect during this turn. It lift the effects of protection moves.
Constant Summary
Constants inherited from Battle::Move
OneTarget, REGISTERED_MOVES, R_RANGE, TargetNoAsk
Instance Attribute Summary
Attributes inherited from Battle::Move
#consecutive_use_count, #damage_dealt, #effectiveness, #forced_next_move_decrease_pp, #id, #logic, #original, #pp, #ppmax, #scene, #used
Instance Method Summary collapse
-
#blocked_by?(target, symbol) ⇒ Boolean
Detect if the move is protected by another move on target.
-
#real_base_power(user, target) ⇒ Integer
Get the real base power of the move (taking in account all parameter).
Methods inherited from BasicWithSuccessfulEffect
Methods inherited from Basic
#deal_damage, #effect_working?
Methods inherited from Battle::Move
[], #accuracy, #accuracy_mod, #accuracy_text, #atk_class, #authentic?, #ballistics?, #battle_stage_mod, #battler_targets, #be_method, #bite?, #blocable?, #bypass_chance_of_hit?, #calc_stab, #chance_of_hit, #clone, #critical_hit?, #critical_rate, #damages, #dance?, #data, #db_symbol, #definitive_types, #description, #direct?, #disable_reason, #disabled?, #effect_chance, #evasion_mod, #force_switch?, #gravity_affected?, #heal?, #initialize, #magic_coat_affected?, #mirror_move_affected?, #move_blocked_by_target?, #move_usable_by_user, #name, #no_choice_skill?, #not_very_effective?, #ohko?, #one_target?, #physical?, #powder?, #power, #power_text, #pp_text, #pre_attack?, #priority, #proceed, #proceed_pre_attack, #pulse?, #punching?, #recoil?, #recoil_factor, register, register_move_disabled_check_hook, register_move_prevention_target_hook, register_move_prevention_user_hook, register_move_type_change_hook, register_single_type_multiplier_overwrite_hook, #relative_priority, #self_user_switch?, #snatchable?, #sound_attack?, #special?, #status?, #status_effects, #super_effective?, #target, #to_s, #trigger_king_rock?, #type, #type?, #type_dark?, #type_dragon?, #type_electric?, #type_fairy?, #type_fighting?, #type_fire?, #type_flying?, #type_ghost?, #type_grass?, #type_ground?, #type_ice?, #type_insect?, #type_modifier, #type_normal?, #type_poison?, #type_psychic?, #type_rock?, #type_steel?, #type_water?, #unfreeze?
Methods included from Hooks
#exec_hooks, #force_return, included, register, remove, remove_without_name
Constructor Details
This class inherits a constructor from Battle::Move
Instance Method Details
#blocked_by?(target, symbol) ⇒ Boolean
Detect if the move is protected by another move on target
21 22 23 24 25 |
# File 'scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 Feint.rb', line 21 def blocked_by?(target, symbol) return false unless super return !target.effects.has?(:protect) end |
#real_base_power(user, target) ⇒ Integer
Get the real base power of the move (taking in account all parameter)
12 13 14 15 16 |
# File 'scripts/01600 Alpha 25 Battle Engine/04150 Battle_Move/00010 Definitions/00300 Feint.rb', line 12 def real_base_power(user, target) return increased_power if target.move_history.any? && increased_power_move?(target.move_history.last) return super end |