diff options
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Monster.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 447e66261..d99f2cddc 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -605,6 +605,15 @@ void cMonster::KilledBy(TakeDamageInfo & a_TDI) { m_World->BroadcastSoundEffect(m_SoundDeath, GetPosition(), 1.0f, 0.8f); } + + if (IsTame()) + { + if ((m_MobType == mtWolf) || (m_MobType == mtOcelot) || (m_MobType == mtCat) || (m_MobType == mtParrot)) + { + BroadcastDeathMessage(a_TDI); + } + } + int Reward; switch (m_MobType) { |