self-defense 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/self-defense.rb +1 -1
- 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
|