feat(Core/Creature): Implement HasFlagsExtra() helper to creature (#21362)

This commit is contained in:
Andrew
2025-02-08 14:07:04 -03:00
committed by GitHub
parent 31529db282
commit 79cbb00075
9 changed files with 35 additions and 57 deletions

View File

@@ -74,7 +74,7 @@ uint32 Acore::XP::Gain(Player* player, Unit* unit, bool isBattleGround /*= false
uint32 gain = 0;
if (!creature || (!creature->IsTotem() && !creature->IsPet() && !creature->IsCritter() &&
!(creature->GetCreatureTemplate()->flags_extra & CREATURE_FLAG_EXTRA_NO_XP)))
!creature->HasFlagsExtra(CREATURE_FLAG_EXTRA_NO_XP)))
{
float xpMod = 1.0f;