fix(Core/Entities): Don't reward quest reputation for factions that are hostile to your player's team. (#24100)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
parent
0b9472b7cd
commit
36560a4ff3
2 changed files with 31 additions and 2 deletions
|
|
@ -979,6 +979,8 @@ struct FactionTemplateEntry
|
|||
return (hostileMask & entry.ourMask) != 0;
|
||||
}
|
||||
[[nodiscard]] bool IsHostileToPlayers() const { return (hostileMask & FACTION_MASK_PLAYER) != 0; }
|
||||
[[nodiscard]] bool IsHostileToAlliancePlayers() const { return (hostileMask & FACTION_MASK_ALLIANCE) != 0; }
|
||||
[[nodiscard]] bool IsHostileToHordePlayers() const { return (hostileMask & FACTION_MASK_HORDE) != 0; }
|
||||
[[nodiscard]] bool IsNeutralToAll() const
|
||||
{
|
||||
for (unsigned int i : enemyFaction)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue