Implement anti-magic zone.
[heroik.git] / heroik.js
index 401268b..bca710e 100644 (file)
--- a/heroik.js
+++ b/heroik.js
@@ -58,6 +58,10 @@ function choice (seq) {
     return seq[(Math.random() * seq.length) | 0];
 }
 
     return seq[(Math.random() * seq.length) | 0];
 }
 
+function not (f) {
+    return function () { return !f.apply(this, arguments); };
+}
+
 function contains (element) {
     return this.indexOf(element) >= 0;
 }
 function contains (element) {
     return this.indexOf(element) >= 0;
 }