refactor(Core/Object): adds consistency in the use of type object check (#19671)
This commit is contained in:
@@ -99,7 +99,7 @@ struct boss_najentus : public BossAI
|
||||
|
||||
void KilledUnit(Unit* victim) override
|
||||
{
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER && _canTalk)
|
||||
if (victim->IsPlayer() && _canTalk)
|
||||
{
|
||||
Talk(SAY_SLAY);
|
||||
_canTalk = false;
|
||||
|
||||
Reference in New Issue
Block a user