diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-01 21:55:17 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-09-01 21:55:17 +0200 |
commit | f8b9400713cbb96f61c1515132aa6af99c73d600 (patch) | |
tree | 7ec1ca42f4d23426b103ec89169c4dd57f7c6194 /src/Mobs/Behaviors/BehaviorAttacker.cpp | |
parent | merge (diff) | |
download | cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.gz cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.bz2 cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.lz cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.xz cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.tar.zst cuberite-f8b9400713cbb96f61c1515132aa6af99c73d600.zip |
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorAttacker.cpp')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorAttacker.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/Mobs/Behaviors/BehaviorAttacker.cpp b/src/Mobs/Behaviors/BehaviorAttacker.cpp index 031b5ddf9..2f25bd3aa 100644 --- a/src/Mobs/Behaviors/BehaviorAttacker.cpp +++ b/src/Mobs/Behaviors/BehaviorAttacker.cpp @@ -13,7 +13,6 @@ cBehaviorAttacker::cBehaviorAttacker() : , m_AttackDamage(1) , m_AttackRange(1) , m_AttackCoolDownTicksLeft(0) - , m_TicksSinceLastDamaged(100) , m_IsStriking(false) , m_Target(nullptr) { @@ -117,11 +116,6 @@ void cBehaviorAttacker::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) void cBehaviorAttacker::PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) { - if (m_TicksSinceLastDamaged < 100) - { - ++m_TicksSinceLastDamaged; - } - if (m_AttackCoolDownTicksLeft > 0) { m_AttackCoolDownTicksLeft -= 1; @@ -143,7 +137,6 @@ void cBehaviorAttacker::DoTakeDamage(TakeDamageInfo & a_TDI) { SetTarget(static_cast<cPawn*>(a_TDI.Attacker)); } - m_TicksSinceLastDamaged = 0; } } |