PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

encounter.useItem always returns ACTIVE_ITEM_EXISTS

Open Qudyjac opened this issue 9 years ago • 2 comments

It is not possible to use berries when catching a pokemon. encounter.useItem always returns ACTIVE_ITEM_EXISTS

You can check this with the CatchPokemonAtEreaExample

I changed line 178 from encounter.useItem(ItemId.ITEM_RAZZ_BERRY); to System.out.println(encounter.useItem(ItemId.ITEM_RAZZ_BERRY).toString()); to get the result.

Qudyjac avatar Apr 01 '17 17:04 Qudyjac

logic bug: file: Encounter.java line : 192 bug - if (activeItem == null) { change to if (getActiveItem() == null) {

btremote999 avatar Apr 02 '17 15:04 btremote999

That did the trick, thx. Now someone has to fix it in the repo.

Qudyjac avatar Apr 02 '17 18:04 Qudyjac