Browse Source

fix again

hugedong69 8 years ago
parent
commit
8f4cb85979
1 changed files with 2 additions and 2 deletions
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -648,11 +648,11 @@ module.exports = function FpsUtils(dispatch) {
             return false
     })
     dispatch.hook('S_FEARMOVE_STAGE', 1,(event) => {
-        if( state > 2) 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)) 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( state > 2) return false // should really add users to hiddenIndividual instead of this
+        if(!event.target.equals(pcid) && (state > 2 || flags.state > 2)) return false // should really add users to hiddenIndividual instead of this
     })