fix noobprotection

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • fix noobprotection

      the noobprotection has 2 values
      one is the minimum points to be attacked
      second ist the multiplier wich means that for example only players can be attacked wich are at least 5 times bigger or 5 times smaller then the player who want to attack.

      however the system didn't work for small error, wich we will correct here.
      change this 2 lines(file and line are in the codeboxes below)

      Source Code: includes\GeneralFunctions.php

      1. ($TargetPlayer['total_points'] <= $config->noobprotectiontime) || // Default:

      Source Code

      1. ($OwnerPlayer['total_points'] < $config->noobprotectiontime) || // Default: 5.000
      both where connectet with &&(and) but we want ||(or) cause each of the rules can lead to protection.