fixed build²

This commit is contained in:
Ovahlord
2019-04-27 21:17:02 +02:00
parent 66f2bd91bb
commit cd55e1742b

View File

@@ -771,7 +771,7 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
if (victim->GetTypeId() == TYPEID_PLAYER)
{
// Signal to pets that their owner was attacked - except when DOT.
if (attacker != victim && damagetype != DOT)
if (this != victim && damagetype != DOT)
{
for (Unit* controlled : victim->m_Controlled)
if (Creature* cControlled = controlled->ToCreature())