diff --git a/mod_hardened/hooks/skills/skill.nut b/mod_hardened/hooks/skills/skill.nut index 5c7f298..0bfe4df 100644 --- a/mod_hardened/hooks/skills/skill.nut +++ b/mod_hardened/hooks/skills/skill.nut @@ -32,8 +32,10 @@ local prevMax = null; // We will encounter ::Math.rand in this switcheroo operation exactly two times - ::Math.rand = function( _min, _max ) + ::Math.rand = function( _min = null, _max = null ) { + if (_min == null && _max == null) return oldMathRand(); + if (previosResult == null) // First time we need to note the min and max range for the base values { previosResult = oldMathRand(_min, _max);