Class: RubyWarrior::Abilities::Rest
- Inherits:
-
Base
- Object
- Base
- RubyWarrior::Abilities::Rest
- Defined in:
- lib/ruby_armor/ruby_warrior_ext/abilities/rest.rb
Instance Method Summary collapse
Instance Method Details
#original_perform ⇒ Object
4 |
# File 'lib/ruby_armor/ruby_warrior_ext/abilities/rest.rb', line 4 alias_method :original_perform, :perform |
#perform ⇒ Object
5 6 7 8 9 10 |
# File 'lib/ruby_armor/ruby_warrior_ext/abilities/rest.rb', line 5 def perform original = @unit.health original_perform state = $window.game_state_manager.inside_state || $window.current_game_state state.unit_health_changed(@unit, @unit.health - original) if @unit.health > original end |