Merge pull request #15473 from Treeston/3.3.5-fixplayerdamagereq

Core/Unit: Player-summoned creature damage counts towards quest credit
This commit is contained in:
jackpoz committed 2015-09-25 22:51:42 +02:00
commit 3f24853e29
1 file changed
+1 -1
+1 -1
View File
@@ -721,7 +721,7 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
if (!victim->ToCreature()->hasLootRecipient())
victim->ToCreature()->SetLootRecipient(this);
if (IsControlledByPlayer())
if (IsControlledByPlayer() || (ToTempSummon() && ToTempSummon()->GetSummoner() && ToTempSummon()->GetSummoner()->GetTypeId() == TYPEID_PLAYER))
victim->ToCreature()->LowerPlayerDamageReq(health < damage ? health : damage);
}