liyunfan1223 / mod-playerbots

AzerothCore Playerbots Module
https://discord.gg/NQm5QShwf9
GNU Affero General Public License v3.0
268 stars 142 forks source link

Bots hostile in Cenarion Refuge, Zangarmarsh #513

Open danielcoh92 opened 1 month ago

danielcoh92 commented 1 month ago

Describe the bug Bots are hostile towards the opposing faction in Cenarion Refuge in Zangarmarsh (shared quest hub).

Commit hash 24D8822305AF0CBBC48DAFF8EF3F711A5135113F

To Reproduce Steps to reproduce the behavior:

  1. Go to Cenarion Refuge (Zangarmarsh, Outlands)
  2. Spawn hostile faction bot
  3. The hostile faction bot will attack the player (and soon after die to guards).

Expected behavior Bots should not attack the opposing faction characters while in this shared quest hub. This behaviour works as intended in other quest hubs like Gadgetzan and Booty Bay. They CAN attack, but they shouldn't.

Bobblybook commented 2 weeks ago

This happens in a lot of shared hubs, many in Northrend (the azure mage camp thing in Borean Tundra, wyrmrest accord tower thing are a few I've found). If it works in booty bay and gadget then it is probably doable, I will look inito it at some point.

Not sure there is an easy way to determine whether a bot should be open to PVP or not, as I don't think there are any clear state changes just for entering this sort of area.

We might need to keep a blacklist for non-combat zones.

Have also noticed a bit of a bug related to this - when a hostile player attacks me in a shared zone with guards, and is killed by the guards, one of my DK altbots raised their corpse as a ghoul. Because that spell was technically cast on an enemy faction, my DK aggroed the guards and was attacked too. Unsure if that mirrors vanilla behaviour, but it happens quite often due to playerbots trying to raise ghoul on any corpse they can find.