mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
refactor(Core/Object): adds consistency in the use of type object check (#19671)
This commit is contained in:
@@ -114,7 +114,7 @@ void CharmInfo::InitCharmCreateSpells()
|
||||
{
|
||||
InitPetActionBar();
|
||||
|
||||
if (_unit->GetTypeId() == TYPEID_PLAYER) // charmed players don't have spells
|
||||
if (_unit->IsPlayer()) // charmed players don't have spells
|
||||
return;
|
||||
|
||||
for (uint32 i = 0; i < MAX_SPELL_CHARM; ++i)
|
||||
|
||||
Reference in New Issue
Block a user