diff options
author | Gargaj <gargaj@conspiracy.hu> | 2015-11-08 13:44:17 +0100 |
---|---|---|
committer | Gargaj <gargaj@conspiracy.hu> | 2015-11-08 21:01:02 +0100 |
commit | 392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2 (patch) | |
tree | 8b507c8cdce5e25024b3d3a53d2d30c74597dfaf /src/Mobs/CaveSpider.cpp | |
parent | Merge pull request #2624 from Gargaj/patch-2 (diff) | |
download | cuberite-392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2.tar cuberite-392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2.tar.gz cuberite-392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2.tar.bz2 cuberite-392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2.tar.lz cuberite-392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2.tar.xz cuberite-392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2.tar.zst cuberite-392a3d319c8f8c92bc3e9c9d2c1707db955a2ae2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/CaveSpider.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Mobs/CaveSpider.cpp b/src/Mobs/CaveSpider.cpp index a8b40f52e..ee3f4803c 100644 --- a/src/Mobs/CaveSpider.cpp +++ b/src/Mobs/CaveSpider.cpp @@ -27,15 +27,19 @@ void cCaveSpider::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) -void cCaveSpider::Attack(std::chrono::milliseconds a_Dt) +bool cCaveSpider::Attack(std::chrono::milliseconds a_Dt) { - super::Attack(a_Dt); + if (!super::Attack(a_Dt)) + { + return false; + } if (m_Target->IsPawn()) { // TODO: Easy = no poison, Medium = 7 seconds, Hard = 15 seconds static_cast<cPawn *>(m_Target)->AddEntityEffect(cEntityEffect::effPoison, 7 * 20, 0); } + return true; } |