Core/Spells: Set UNIT_FIELD_TARGET to current spell cast target for proper facing the target
This commit is contained in:
@@ -183,7 +183,7 @@ public:
|
||||
if (pAttumen->getVictim())
|
||||
{
|
||||
pAttumen->GetMotionMaster()->MoveChase(pAttumen->getVictim());
|
||||
pAttumen->SetUInt64Value(UNIT_FIELD_TARGET, pAttumen->getVictim()->GetGUID());
|
||||
pAttumen->SetTarget(pAttumen->getVictim()->GetGUID());
|
||||
}
|
||||
pAttumen->SetFloatValue(OBJECT_FIELD_SCALE_X, 1);
|
||||
}
|
||||
|
||||
@@ -397,7 +397,7 @@ public:
|
||||
return;
|
||||
|
||||
if (me->GetUInt64Value(UNIT_FIELD_TARGET) != me->getVictim()->GetGUID())
|
||||
me->SetUInt64Value(UNIT_FIELD_TARGET, me->getVictim()->GetGUID());
|
||||
me->SetTarget(me->getVictim()->GetGUID());
|
||||
|
||||
if (phase == 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user