Class: Battle::Effects::Ability::ParentalBond
- Defined in:
- docs/5_Battle_06_Effects_04_Ability_Effects.rb
Overview
Class describing the Parental Bond ability effect
Constant Summary collapse
- ONLY_ONE_ATTACK =
Constant telling the be_method of the moves not affected by Parental Bond
%i[s_solar_beam s_2turns s_endeavor s_ohko s_fling s_explosion s_final_gambit s_uproar s_rollout s_ice_ball s_relic_sound s_electro_shot]
- ONLY_ON_SECOND_ATTACK =
Constant telling which be_method can activate their effect on the second attack only
%i[s_secret_power s_u_turn s_thief s_pluck s_smelling_salt s_wakeup_slap s_knock_off s_scald s_smack_down s_burn_up s_bind s_fury_cutter s_split_up s_reload s_outrage s_present s_pledge]
Instance Attribute Summary collapse
-
#activated ⇒ Boolean
writeonly
If the talent is activated or not.
-
#attack_number ⇒ Integer
Which attack number are we currently on this turn?.
-
#first_turn_recoil ⇒ Integer
Returns the amount of damage the launcher must take from the recoil.
Instance Method Summary collapse
-
#activated? ⇒ Boolean
(also: #activated)
Tells if the ability is currently activated.
-
#excluded?(be_method) ⇒ Boolean
Check if the actual move need the initial procedure (Parental Bond not working on it).
-
#first_effect_can_be_applied?(be_method) ⇒ Boolean
Check if the actual move can activate its have his effect activated.
-
#initialize(logic, target, db_symbol) ⇒ ParentalBond
constructor
Create a new Parental Bond effect.
-
#mod3_multiplier(user, target, move) ⇒ Float, Integer
Give the move mod3 mutiplier (after everything).
-
#name ⇒ Symbol
Get the name of the effect.
-
#number_of_attacks ⇒ Integer
Returns the number of attack this Ability causes.
-
#specific_proceed_internal(user, targets, move)
Return the specific proceed_internal if the condition is fulfilled.
Constructor Details
#initialize(logic, target, db_symbol) ⇒ ParentalBond
Create a new Parental Bond effect
2413 2414 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2413 def initialize(logic, target, db_symbol) end |
Instance Attribute Details
#activated=(value) ⇒ Boolean (writeonly)
If the talent is activated or not
2402 2403 2404 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2402 def activated=(value) @activated = value end |
#attack_number ⇒ Integer
Which attack number are we currently on this turn?
2408 2409 2410 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2408 def attack_number @attack_number end |
#first_turn_recoil ⇒ Integer
Returns the amount of damage the launcher must take from the recoil
2405 2406 2407 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2405 def first_turn_recoil @first_turn_recoil end |
Instance Method Details
#activated? ⇒ Boolean Also known as: activated
Tells if the ability is currently activated
2417 2418 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2417 def activated? end |
#excluded?(be_method) ⇒ Boolean
Check if the actual move need the initial procedure (Parental Bond not working on it)
2440 2441 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2440 def excluded?(be_method) end |
#first_effect_can_be_applied?(be_method) ⇒ Boolean
Check if the actual move can activate its have his effect activated
2436 2437 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2436 def first_effect_can_be_applied?(be_method) end |
#mod3_multiplier(user, target, move) ⇒ Float, Integer
Give the move mod3 mutiplier (after everything)
2447 2448 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2447 def mod3_multiplier(user, target, move) end |
#name ⇒ Symbol
Get the name of the effect
2428 2429 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2428 def name end |
#number_of_attacks ⇒ Integer
Returns the number of attack this Ability causes
2432 2433 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2432 def number_of_attacks end |
#specific_proceed_internal(user, targets, move)
Return the specific proceed_internal if the condition is fulfilled
2424 2425 |
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2424 def specific_proceed_internal(user, targets, move) end |