diff options
author | worktycho <work.tycho@gmail.com> | 2015-11-08 23:08:40 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2015-11-08 23:08:40 +0100 |
commit | a1926ca16e76f082b2139b1686fd19c0c42c585e (patch) | |
tree | 3a8a282d1966476ea8f6031a1ea15388330fede8 /src/Mobs/Creeper.cpp | |
parent | Merge pull request #2616 from Gargaj/patch-1 (diff) | |
parent | fix cavespider poisoning even if attack is in cooldown (diff) | |
download | cuberite-a1926ca16e76f082b2139b1686fd19c0c42c585e.tar cuberite-a1926ca16e76f082b2139b1686fd19c0c42c585e.tar.gz cuberite-a1926ca16e76f082b2139b1686fd19c0c42c585e.tar.bz2 cuberite-a1926ca16e76f082b2139b1686fd19c0c42c585e.tar.lz cuberite-a1926ca16e76f082b2139b1686fd19c0c42c585e.tar.xz cuberite-a1926ca16e76f082b2139b1686fd19c0c42c585e.tar.zst cuberite-a1926ca16e76f082b2139b1686fd19c0c42c585e.zip |
Diffstat (limited to 'src/Mobs/Creeper.cpp')
-rw-r--r-- | src/Mobs/Creeper.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Creeper.cpp b/src/Mobs/Creeper.cpp index 353d0f009..141f77d08 100644 --- a/src/Mobs/Creeper.cpp +++ b/src/Mobs/Creeper.cpp @@ -121,7 +121,7 @@ bool cCreeper::DoTakeDamage(TakeDamageInfo & a_TDI) -void cCreeper::Attack(std::chrono::milliseconds a_Dt) +bool cCreeper::Attack(std::chrono::milliseconds a_Dt) { UNUSED(a_Dt); @@ -130,7 +130,10 @@ void cCreeper::Attack(std::chrono::milliseconds a_Dt) m_World->BroadcastSoundEffect("game.tnt.primed", GetPosX(), GetPosY(), GetPosZ(), 1.f, (0.75f + (static_cast<float>((GetUniqueID() * 23) % 32)) / 64)); m_bIsBlowing = true; m_World->BroadcastEntityMetadata(*this); + + return true; } + return false; } |