PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Logic bug in "and\or" for "release"

Open mouendless opened this issue 10 years ago • 2 comments

Expected Behavior

After update today, In my configuration "Slowbro": { "release_below_cp": 907, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Victreebel": { "release_below_cp": 883, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Machamp": { "release_below_cp": 907, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Poliwrath": { "release_below_cp": 876, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Clefable": { "release_below_cp": 837, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Nidoking": { "release_below_cp": 864, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Venusaur": { "release_below_cp": 902, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Charizard": { "release_below_cp": 909, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Golduck": { "release_below_cp": 1000, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Nidoqueen": { "release_below_cp": 868, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Vileplume": { "release_below_cp": 871, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Blastoise": { "release_below_cp": 888, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Omastar": { "release_below_cp": 780, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Aerodactyl": { "release_below_cp": 756, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Golem": { "release_below_cp": 804, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Wigglytuff": { "release_below_cp": 760, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Dewgong": { "release_below_cp": 748, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Ninetales": { "release_below_cp": 763, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Magmar": { "release_below_cp": 792, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Kabutops": { "release_below_cp": 744, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Electabuzz": { "release_below_cp": 739, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Starmie": { "release_below_cp": 763, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Jolteon": { "release_below_cp": 746, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Rapidash": { "release_below_cp": 768, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Pinsir": { "release_below_cp": 741, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Scyther": { "release_below_cp": 724, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Tentacruel": { "release_below_cp": 775, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Gengar": { "release_below_cp": 724, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Hypno": { "release_below_cp": 763, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Pidgeot": { "release_below_cp": 729, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Rhydon": { "release_below_cp": 782, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Seaking": { "release_below_cp": 712, "release_below_iv": 0.8, "cp_iv_logic": "and" }, "Kangaskhan": { "release_below_cp": 712, "release_below_iv": 0.8, "cp_iv_logic": "and" },

Actual Behavior

[01:11:02] Exchanging Weedle [CP 127] [Potential 0.38] for candy! [01:11:03] Releasing Nidoqueen with CP 1391 and IV 0.62. Matching release rule: CP < 868 OR IV < 0.8.
[01:11:03] Exchanging Nidoqueen [CP 1391] [Potential 0.62] for candy! [01:11:05] Releasing Nidoking with CP 1381 and IV 0.49. Matching release rule: CP < 864 OR IV < 0.8.
[01:11:05] Exchanging Nidoking [CP 1381] [Potential 0.49] for candy! [01:11:09] Releasing Ninetales with CP 1238 and IV 0.73. Matching release rule: CP < 763 OR IV < 0.8.
[01:11:09] Exchanging Ninetales [CP 1238] [Potential 0.73] for candy! [01:11:12] Releasing Wigglytuff with CP 1307 and IV 0.69. Matching release rule: CP < 760 OR IV < 0.8.
[01:11:12] Exchanging Wigglytuff [CP 1307] [Potential 0.69] for candy! [01:11:15] Releasing Vileplume with CP 1266 and IV 0.6. Matching release rule: CP < 871 OR IV < 0.8.
[01:11:15] Exchanging Vileplume [CP 1266] [Potential 0.6] for candy! [01:11:16] Releasing Tentacruel with CP 1345 and IV 0.53. Matching release rule: CP < 775 OR IV < 0.8.
[01:11:16] Exchanging Tentacruel [CP 1345] [Potential 0.53] for candy! [01:11:18] Releasing Golem with CP 1259 and IV 0.62. Matching release rule: CP < 804 OR IV < 0.8.
[01:11:18] Exchanging Golem [CP 1259] [Potential 0.62] for candy! [01:11:20] Releasing Rapidash with CP 1168 and IV 0.51. Matching release rule: CP < 768 OR IV < 0.8.
[01:11:20] Exchanging Rapidash [CP 1168] [Potential 0.51] for candy! [01:11:24] Releasing Slowbro with CP 1212 and IV 0.38. Matching release rule: CP < 907 OR IV < 0.8.
[01:11:24] Exchanging Slowbro [CP 1212] [Potential 0.38] for candy! [01:11:26] Releasing Dewgong with CP 1141 and IV 0.49. Matching release rule: CP < 748 OR IV < 0.8.
[01:11:26] Exchanging Dewgong [CP 1141] [Potential 0.49] for candy! [01:11:30] Releasing Grimer with CP 599 and IV 0.78. Matching release rule: CP < 448 OR IV < 0.85.
[01:11:30] Exchanging Grimer [CP 599] [Potential 0.78] for candy! [01:11:32] Releasing Hypno with CP 1296 and IV 0.58. Matching release rule: CP < 763 OR IV < 0.8.
[01:11:32] Exchanging Hypno [CP 1296] [Potential 0.58] for candy! [01:11:33] Releasing Rhydon with CP 1213 and IV 0.56. Matching release rule: CP < 782 OR IV < 0.8.
[01:11:33] Exchanging Rhydon [CP 1213] [Potential 0.56] for candy! [01:11:37] Releasing Electabuzz with CP 501 and IV 0.51. Matching release rule: CP < 739 OR IV < 0.8.
[01:11:37] Exchanging Electabuzz [CP 501] [Potential 0.51] for candy! [01:11:39] Releasing Lapras with CP 308 and IV 0.87. Matching release rule: CP < 1041 OR IV < 0.8.

Other Information

OS: Centos Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)

mouendless avatar Jul 31 '16 05:07 mouendless

Rip!

Mine logic is fine. The secret is try to find a stable dev :D

xc-mezcal avatar Jul 31 '16 06:07 xc-mezcal

@xc-mezcal I just update from dev and try again then.. In my config "Gyarados": { "release_below_cp": 1500, "release_below_iv": 0.8, "cp_iv_logic": "and" },

actually [11:17:05] Releasing Gyarados with CP 913 and IV 0.93. Matching release rule: CP < 1500 OR IV < 0.8.
[11:17:05] Exchanging Gyarados [CP 913] [Potential 0.93] for candy!

mouendless avatar Jul 31 '16 15:07 mouendless