diff options
author | TheHyper45 <86074167+TheHyper45@users.noreply.github.com> | 2021-06-19 23:25:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-19 23:25:24 +0200 |
commit | 3b35a00397d7919b0613be8f6f756beabad53edc (patch) | |
tree | ea928e8fe19f75cf1af2df6680acebe6a749aa9a /src/Mobs/Monster.cpp | |
parent | Move More CI into Jenkins - Travis Migration Progress (#5241) (diff) | |
download | cuberite-3b35a00397d7919b0613be8f6f756beabad53edc.tar cuberite-3b35a00397d7919b0613be8f6f756beabad53edc.tar.gz cuberite-3b35a00397d7919b0613be8f6f756beabad53edc.tar.bz2 cuberite-3b35a00397d7919b0613be8f6f756beabad53edc.tar.lz cuberite-3b35a00397d7919b0613be8f6f756beabad53edc.tar.xz cuberite-3b35a00397d7919b0613be8f6f756beabad53edc.tar.zst cuberite-3b35a00397d7919b0613be8f6f756beabad53edc.zip |
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) { |