diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-13 06:51:13 +0100 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-13 06:52:11 +0100 |
commit | 91aec448eb275ff03ec23524a8a710538046d0bb (patch) | |
tree | 5d1c1ab5b3dd6b86ccfbcaef0400d25261bc4760 /src/Mobs/AggressiveMonster.cpp | |
parent | Merge pull request #2668 from SafwatHalaby/decouple2 (diff) | |
download | cuberite-91aec448eb275ff03ec23524a8a710538046d0bb.tar cuberite-91aec448eb275ff03ec23524a8a710538046d0bb.tar.gz cuberite-91aec448eb275ff03ec23524a8a710538046d0bb.tar.bz2 cuberite-91aec448eb275ff03ec23524a8a710538046d0bb.tar.lz cuberite-91aec448eb275ff03ec23524a8a710538046d0bb.tar.xz cuberite-91aec448eb275ff03ec23524a8a710538046d0bb.tar.zst cuberite-91aec448eb275ff03ec23524a8a710538046d0bb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/AggressiveMonster.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp index a7a1eeef5..309f6d985 100644 --- a/src/Mobs/AggressiveMonster.cpp +++ b/src/Mobs/AggressiveMonster.cpp @@ -28,14 +28,6 @@ void cAggressiveMonster::InStateChasing(std::chrono::milliseconds a_Dt) if (m_Target != nullptr) { - if (m_Target->IsPlayer()) - { - if (static_cast<cPlayer *>(m_Target)->IsGameModeCreative()) - { - m_EMState = IDLE; - return; - } - } MoveToPosition(m_Target->GetPosition()); } } @@ -103,6 +95,6 @@ bool cAggressiveMonster::Attack(std::chrono::milliseconds a_Dt) // Setting this higher gives us more wiggle room for attackrate m_AttackInterval = 0.0; m_Target->TakeDamage(dtMobAttack, this, m_AttackDamage, 0); - + return true; } |