Bug Closed · Could not replicate

AiTargetSelector - SpecificFaction [Faction] does NOT work!

#6037 opened by Unknown 1 year ago

Unknownreported this bug

Summary If you create a MythicMob with this value:

AiTargetSelectors: 0 clear 1 specificfaction Humans

It will attack ALL players, no matter what faction they are or if they even have a faction at all. This is a known bug that's been around for over a year.

Steps to reproduce

AiTargetSelectors: 0 clear 1 specificfaction Humans

Just use these target selectors and you will get attacked by the mob. Try changing your faction too to see if that does anything.

Current behavior

All players get attacked by a mob who should only attack players in the Humans faction.

Intended correct behavior

Only players in the Humans Faction should get attacked.

Server log file

N/A absolutely nothing regarding this problem shows in log.

Debug log snippet

N/A

Proposed fixes

SpecificFactionMobs works perfectly, so the implementation should be very similar.

Unknowncommented
TestAISpecificFaction:
  Type: HUSK
  Faction: test
  AIGoalSelectors:
  - clear
  - meleeattack
  AITargetSelectors:
  - clear
  - specificfaction enemy
  
TestAISpecificFaction2:
  Type: HUSK
  Faction: enemy
  AIGoalSelectors:
  - clear
  - meleeattack
  AITargetSelectors:
  - clear
  - specificfaction test

these two mobs attack each other for me and do not attack anything else, as intended

Sign in to join the discussion.