diff options
author | Mat <mail@mathias.is> | 2020-03-19 18:13:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 18:13:41 +0100 |
commit | 0e07e231a219fb810c100e1cd823ef7585f7e2ff (patch) | |
tree | 909e132bd66492606fc1b470284da448372f5534 /src/Mobs/AggressiveMonster.cpp | |
parent | Added myself to CONTRIBUTORS file (#4515) (diff) | |
download | cuberite-0e07e231a219fb810c100e1cd823ef7585f7e2ff.tar cuberite-0e07e231a219fb810c100e1cd823ef7585f7e2ff.tar.gz cuberite-0e07e231a219fb810c100e1cd823ef7585f7e2ff.tar.bz2 cuberite-0e07e231a219fb810c100e1cd823ef7585f7e2ff.tar.lz cuberite-0e07e231a219fb810c100e1cd823ef7585f7e2ff.tar.xz cuberite-0e07e231a219fb810c100e1cd823ef7585f7e2ff.tar.zst cuberite-0e07e231a219fb810c100e1cd823ef7585f7e2ff.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/AggressiveMonster.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp index 9b13615de..da2b02a6d 100644 --- a/src/Mobs/AggressiveMonster.cpp +++ b/src/Mobs/AggressiveMonster.cpp @@ -102,7 +102,9 @@ bool cAggressiveMonster::Attack(std::chrono::milliseconds a_Dt) // Setting this higher gives us more wiggle room for attackrate ResetAttackCooldown(); - GetTarget()->TakeDamage(dtMobAttack, this, m_AttackDamage, 0); + + double KnockbackAmount = 9; + GetTarget()->TakeDamage(dtMobAttack, this, m_AttackDamage, KnockbackAmount); return true; } |