aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclick <none@none>2010-10-22 03:59:08 +0200
committerclick <none@none>2010-10-22 03:59:08 +0200
commita1319a20200d44a6893287e7a0b4bf05b0f9a0ef (patch)
treec6bddef56a74200d3caee36ce58a16ee72283e2d
parentcaf8bbbe0a8e35c4e43dfe21286e4c8c8f992994 (diff)
Core/Unit: Revert r457923c3f3 - combattimer handling from that revision is wrong, as it dictates wether not a creature will actually enter combat or not - with
the earlier change this ment that any creature entering combat would not properly continue if target moved. --HG-- branch : trunk
-rwxr-xr-xsrc/server/game/Entities/Unit/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 5a9f3a19ca3..5981c8ea9af 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -253,7 +253,7 @@ void Unit::Update(uint32 p_time)
{
// m_CombatTimer set at aura start and it will be freeze until aura removing
if (m_CombatTimer <= p_time)
- CombatStop();
+ ClearInCombat();
else
m_CombatTimer -= p_time;
}