chore(Core/Unit): Correct typo of Controlled. (#22260)

This commit is contained in:
Benjamin Jackson
2025-06-03 02:56:44 -04:00
committed by GitHub
parent 46d2739a74
commit 2a93e7d410
10 changed files with 20 additions and 20 deletions

View File

@@ -293,7 +293,7 @@ public:
void OnCreatureCreate(Creature* creature) override
{
// apply ICC buff to pets/summons
if (GetData(DATA_BUFF_AVAILABLE) && creature->GetOwnerGUID().IsPlayer() && creature->HasUnitTypeMask(UNIT_MASK_MINION | UNIT_MASK_GUARDIAN | UNIT_MASK_CONTROLABLE_GUARDIAN) && creature->CanHaveThreatList())
if (GetData(DATA_BUFF_AVAILABLE) && creature->GetOwnerGUID().IsPlayer() && creature->HasUnitTypeMask(UNIT_MASK_MINION | UNIT_MASK_GUARDIAN | UNIT_MASK_CONTROLLABLE_GUARDIAN) && creature->CanHaveThreatList())
if (Unit* owner = creature->GetOwner())
if (Player* plr = owner->ToPlayer())
{