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 Fix: softban detection was incrementing TimesZeroXPawarded incorrectly #917

Merged

Conversation

mrnitrate
Copy link
Contributor

Bug Fix: softban detection was incrementing TimesZeroXPawarded when Experience was Awarded , instead needs to be when NOT awarded experience.

…Experience was Awarded , instead needs to be when NOT awarded experience.
@Hardell
Copy link

Hardell commented Jul 27, 2016

if (TimesZeroXPawarded > 5)
should be
if (TimesZeroXPawarded < 5)
as well. Otherwise it tries to clear softban when the counter is < 5, which makes no sense.

@iBorna
Copy link
Contributor

iBorna commented Jul 27, 2016

It shouldn't even have timeszeroxawarded, someone added it to my code which caused erros.
It's pointless to have it in loop which checks the same pokestop...

@iBorna
Copy link
Contributor

iBorna commented Jul 27, 2016

Softban bypass - check if pokestop can be looted (small improvement) #897

@NecronomiconCoding NecronomiconCoding merged commit 398eac6 into NecronomiconCoding:master Jul 27, 2016
@Hardell
Copy link

Hardell commented Jul 27, 2016

This is still completely broken without fixing the other line. You also need to reset TimesZeroXPawarded after getting XP or you will be stuck in one part of the if statement forever.

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

Successfully merging this pull request may close these issues.

5 participants