mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Core/Movement: correct logic wrongly ported in 2a84562dc8
I'm referencing line 97 from ChaseMovementGenerator. That commit introduced a modification in this use case: - Chasing target is not my current victim, I should stop moving till it is my victim again Changed To: - Chasing target is not my current vicitm, I should stop chasing My correction: - I dont care about the relation of my current victim and my chasing target, I'm commanded to chase, something will tell me to stop chasing --> Most likely: evade, new attackstart, etc. the rest are just minor changes
This commit is contained in:
@@ -2127,8 +2127,8 @@ public:
|
||||
float x, y, z;
|
||||
unit->GetMotionMaster()->GetDestination(x, y, z);
|
||||
|
||||
std::vector<MovementGeneratorInformation> list = unit->GetMotionMaster()->GetMovementGeneratorsInformation();
|
||||
for (MovementGeneratorInformation info : list)
|
||||
std::vector<MovementGeneratorInformation> const list = unit->GetMotionMaster()->GetMovementGeneratorsInformation();
|
||||
for (MovementGeneratorInformation const& info : list)
|
||||
{
|
||||
switch (info.Type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user