self-defense 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/self-defense.rb +1 -1
  2. metadata +1 -1
data/lib/self-defense.rb CHANGED
@@ -23,7 +23,7 @@ class SelfDefense
23
23
 
24
24
  def sustained?(h={})
25
25
  duration = @unit[h[:duration].slice!(-1).to_sym].call(h[:duration])
26
- @@hits.select {|x| @@hits.last - x <= duration.to_i}.length < h[:hit_limit] - 1
26
+ @@hits.select {|x| @@hits.last - x <= duration.to_i}.length < h[:hit_limit] + 1
27
27
  end
28
28
 
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: self-defense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors: []
7
7