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:
commit
3f24853e29
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user