Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Noob Protection #200

Open
Meatroach opened this issue Jan 19, 2020 · 1 comment
Open

Bug in Noob Protection #200

Meatroach opened this issue Jan 19, 2020 · 1 comment

Comments

@Meatroach
Copy link

The Noobprotection only works for the set factor but not for the set limit (e.g. Noobprotection under 5000 points)

To fix this we need to change some code in the GeneralFunctions.php

Line 312 from
($TargetPlayer['total_points'] <= $config->noobprotectiontime) && // Default: 25.000
to
($TargetPlayer['total_points'] <= $config->noobprotectiontime) || // Default: 25.000

and

Line 320 from
($OwnerPlayer['total_points'] < $config->noobprotectiontime) && // Default: 5.000
to
($OwnerPlayer['total_points'] < $config->noobprotectiontime) || // Default: 5.000

I found this Bugfix in the 2moons-forum (Thanks to Mimikri!) and I tested it

@yamilrh
Copy link

yamilrh commented Jan 27, 2020

nop esto que pones esta mal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants