Browse Source

Add hidden individual check

Forest of ||. Is (flags.state > 2) really necessary smh
kyoukaya 8 years ago
parent
commit
6249ad0a46
1 changed files with 2 additions and 2 deletions
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -658,11 +658,11 @@ module.exports = function FpsUtils(dispatch) {
             return false
     })
     dispatch.hook('S_FEARMOVE_STAGE', 1,(event) => {
-        if(!event.target.equals(pcid) && (state > 2 || flags.state > 2 || peopleThatAreActuallyHidden[event.target])) return false // Prevent crashing on other players getting feared because this is a good game with good coding
+        if(!event.target.equals(pcid) && (state > 2 || flags.state > 2 || peopleThatAreActuallyHidden[event.target] || hiddenIndividual[event.target])) return false // Prevent crashing on other players getting feared because this is a good game with good coding
 
     })
     dispatch.hook('S_FEARMOVE_END', 1,(event) => {
-        if(!event.target.equals(pcid) && (state > 2 || flags.state > 2 || peopleThatAreActuallyHidden[event.target])) return false // Prevent crashing on other players getting feared because this is a good game with good coding
+        if(!event.target.equals(pcid) && (state > 2 || flags.state > 2 || peopleThatAreActuallyHidden[event.target] || hiddenIndividual[event.target])) return false // Prevent crashing on other players getting feared because this is a good game with good coding
     })