Class: Hlockey::Mod::Fencedestroyer
- Inherits:
-
Object
- Object
- Hlockey::Mod::Fencedestroyer
- Includes:
- Moddable
- Defined in:
- lib/hlockey/mod/fencedestroyer.rb
Overview
The player this mod is applied to only gets swapped into defense
Constant Summary collapse
- DESCRIPTION =
"This player can only play defense.".freeze
Instance Attribute Summary
Attributes included from Moddable
Instance Method Summary collapse
Methods included from Moddable
#initialize, #on_action, #on_got_hit, #on_join_fight
Methods included from SelfDescribable
Instance Method Details
#on_swap(into_roster, pos, prev_pos) ⇒ Object
12 13 |
# File 'lib/hlockey/mod/fencedestroyer.rb', line 12 def on_swap(into_roster, pos, prev_pos) = fence_swap(into_roster, pos, prev_pos, type: :destroyer) |