diff options
author | Mat <mail@mathias.is> | 2020-03-26 19:11:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 19:11:43 +0100 |
commit | 2b32bb0b1928704499aa187ed3bff7433264e742 (patch) | |
tree | a006bdd241531e99a20b085d2f94957bd3aa0222 /src/Mobs | |
parent | Improvements to blaze and ghast (#4547) (diff) | |
download | cuberite-2b32bb0b1928704499aa187ed3bff7433264e742.tar cuberite-2b32bb0b1928704499aa187ed3bff7433264e742.tar.gz cuberite-2b32bb0b1928704499aa187ed3bff7433264e742.tar.bz2 cuberite-2b32bb0b1928704499aa187ed3bff7433264e742.tar.lz cuberite-2b32bb0b1928704499aa187ed3bff7433264e742.tar.xz cuberite-2b32bb0b1928704499aa187ed3bff7433264e742.tar.zst cuberite-2b32bb0b1928704499aa187ed3bff7433264e742.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Monster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 7c57e4f2d..233ca70b3 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -883,7 +883,7 @@ void cMonster::InStateEscaping(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) void cMonster::ResetAttackCooldown() { - m_AttackCoolDownTicksLeft = static_cast<int>(3 * 20 * m_AttackRate); // A second has 20 ticks, an attack rate of 1 means 1 hit every 3 seconds + m_AttackCoolDownTicksLeft = static_cast<int>(20 * m_AttackRate); // A second has 20 ticks, an attack rate of 1 means 1 hit every second } |