1
0

Paintings: add sound effects, remove critical hitting (#5276)

This commit is contained in:
Rorkh
2021-07-28 23:51:59 +03:00
committed by GitHub
parent 6a4460383e
commit 4221e08f3a
4 changed files with 23 additions and 5 deletions

View File

@@ -390,6 +390,18 @@ bool cEntity::DoTakeDamage(TakeDamageInfo & a_TDI)
return false;
}
if (IsPainting())
{
KilledBy(a_TDI);
if (a_TDI.Attacker != nullptr)
{
a_TDI.Attacker->Killed(this);
}
return true;
}
if ((a_TDI.Attacker != nullptr) && (a_TDI.Attacker->IsPlayer()))
{
cPlayer * Player = static_cast<cPlayer *>(a_TDI.Attacker);