1
0

Merge pull request #2859 from LogicParrot/attack2

Fix mob attack interval
This commit is contained in:
LogicParrot
2016-01-12 14:46:02 +02:00
7 changed files with 28 additions and 24 deletions

View File

@@ -241,15 +241,11 @@ void cWolf::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
}
else
{
MoveToPosition(m_Target->GetPosition());
if (TargetIsInRange())
{
StopMovingToPosition();
Attack(a_Dt);
}
else
{
MoveToPosition(m_Target->GetPosition());
}
}
}