fix(Core/Spells): pets should not dispel beneficials bufs from neutral units not being at war with pet's owner (#7230)

- Closes #6691
This commit is contained in:
UltraNix
2021-08-06 18:39:35 +02:00
committed by GitHub
parent ea76a0c2bb
commit 14ad1def8b
4 changed files with 39 additions and 14 deletions

View File

@@ -875,6 +875,11 @@ struct FactionEntry
{
return reputationListID >= 0;
}
[[nodiscard]] bool CanBeSetAtWar() const
{
return reputationListID >= 0 && BaseRepRaceMask[0] == 1791;
}
};
#define MAX_FACTION_RELATIONS 4