Bug Closed · Resolved

[Bug] SpecificFaction AITargetSelector attacking players regardless of Permission

#4735 opened by Unknown 2 years ago

Unknownreported this bug

Summary

My goal is for "Castle_Defender_Smart" mob to attack players on the faction/team of "Pirates" and to not attack friendly faction players "CastleDefenders"

I've been following along with the Wiki: https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Mobs/Factions and it mentions "Note on Players: By default, MythicMobs uses a permission system for players to be considered part of a faction. If a player has the permission faction.(factionname), they will be considered in the faction." I am using Luck Perms and have assigned faction.Pirates as a default permission. (see attached) On a MythicMob, I have set AITargetSelectors to include OtherFaction which the wiki states includes any other entities that are not the caster's faction as a target. (see attached 2) I've tried setting a specific faction or giving the player selector a condition but to no avail. (setting the target selector to players attacks all players) The server is recognizing changes from Mythic Mobs since I do a /mm reload and am able to get changes.

Also seen on the Mythic Mobs discord: https://discord.com/channels/213109157983813633/1200997355357491310 This post includes images.

Steps to reproduce

Pastebin is down. YML mobs file: [Legacy attachment omitted]

Current behavior

Bug: The "Pirate_Raider_Smart" mob attacks a player with the "faction.pirates" permission regardless of the AITargetSelectors: - specificfaction{f=CastleDefenders}

Intended correct behavior

I believe the mob should only attack the player is they have "faction.castledefenders" permission but not attack "faction.pirates" permission.

Server log file

Pastebin is down. Latest Log: [Legacy attachment omitted]

Proposed fixes

Unsure of what the Issue here is.

Unknowncommented

AiTargetSelectors:

  • 0 clear
  • 1 specificfaction Humans

With these targetselectors, mobs will attack ANY players regardless of their faction or whether they even have a faction. This target selector is not working as intended. The other tag of SpecificFactionMonsters does work though.

Unknowncommented

Closing due to inactivity and major version changes. If this is still a relevant issue, please re-post with a modern-version server log and current steps to reproduce.

Unknowncommented

Hey, I’m running into a similar issue with Mythic Mobs and factions as well. I’ve set up my mobs to target players of opposing factions, like “Pirates,” while ignoring “CastleDefenders,” but it still targets anyone with the “faction.pirates” permission. I followed the Wiki and set AITargetSelectors to include “OtherFaction,” but it doesn't seem to work as expected.

It’s like trying to prove the authenticity of a document with a federalapostille. You can give the proper permissions and conditions, but if something is off, even a small thing, the result doesn’t match what you’re aiming for. For now, I’ll keep troubleshooting, but any help with this specific issue would be appreciated!

Sign in to join the discussion.