Pokecube-Development / Pokecube-Issues-and-Wiki

This is where all issues for the core pokecube mods should go, also this is where the main wiki should be maintained
MIT License
30 stars 24 forks source link

NPC trainers never want to battle #900

Closed xigzagoon closed 2 years ago

xigzagoon commented 2 years ago

Issue Description:

Trainers always give the "[trainer] does not want to battle you right now." message and never battle with me.

What happens:

Trainers never start battles with me or anything else, but Villagers will occasionally battle each other. Right-clicking to try to start a battle always gives the message that they do not want to battle right now. I even tried reducing their range to check for trainer crowding and their cooldowns to almost none and the issue persists, so it isn't one of those. I have Pokemobs in my hotbar and have tried sending one out before trying to start a battle to see if they would see that I had a Pokemob that way, and the issue continued.

What you expected to happen:

Trainers that see me occasionally battle me, and right clicking a trainer would start a battle.

Steps to reproduce:

  1. Start a new world (may be significant, as I restarted with the release and do not know if previous trainers would still battle in my old world)
  2. Get a Pokemob and put it in your hotbar.
  3. Right-click any trainer.

Affected Versions (Do not use "latest"): Replace with a list of all mods you have in.

Thutmose commented 2 years ago

are you wearing a belt? if so, try putting a pokemob in it, see if that fixes the trainer agro? I will see about making that also check player inventory when wearing one

xigzagoon commented 2 years ago

ah, I was indeed wearing a belt, but it was a belt added by a different mod meant to store tools. filled Pokecubes can go in it but I hadn't been using it for that. Removing it did seem to fix the issue!

Thutmose commented 2 years ago

this should be effectively fixerd now