mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 13:16:23 +00:00
fix(Core/Creature): Implement respond to call for help faction flag. (#21959)
This commit is contained in:
@@ -986,6 +986,13 @@ public:
|
||||
|
||||
return false;
|
||||
}
|
||||
[[nodiscard]] bool RespondsToCallForHelp() const
|
||||
{
|
||||
if (FactionTemplateEntry const* entry = GetFactionTemplateEntry())
|
||||
return entry->FactionRespondsToCallForHelp();
|
||||
|
||||
return false;
|
||||
}
|
||||
[[nodiscard]] bool IsInSanctuary() const { return HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY); }
|
||||
[[nodiscard]] bool IsPvP() const { return HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_PVP); }
|
||||
[[nodiscard]] bool IsFFAPvP() const { return HasByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_FFA_PVP); }
|
||||
|
||||
Reference in New Issue
Block a user