Module: Battle::Effects::Mechanics::NeutralizeType
- Included in:
- Roost
- Defined in:
- scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 NeutralizeType.rb
Overview
Neutralize Type Effect
**Includer requirements**
-
call neutralize_type_initialize
-
def neutralyzed_type
Instance Method Summary collapse
-
#neutralize_type_initialize(target, turn_count)
Create a new effect.
-
#on_delete
(also: #neutralize_type_on_delete)
Show the message when the effect gets deleted.
Instance Method Details
#neutralize_type_initialize(target, turn_count)
Create a new effect
13 14 15 16 17 |
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 NeutralizeType.rb', line 13 def neutralize_type_initialize(target, turn_count) @target = target target.ignore_types(*neutralyzed_types) self.counter = turn_count end |
#on_delete Also known as: neutralize_type_on_delete
Show the message when the effect gets deleted
20 21 22 |
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 NeutralizeType.rb', line 20 def on_delete @target.restore_types end |