Skip to content

Commit 64b3c84

Browse files
committed
asd
1 parent 091727d commit 64b3c84

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/server/game/Entities/Creature/Creature.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,7 +3086,7 @@ void Creature::SetSpellFocus(Spell const* focusSpell, WorldObject const* target)
30863086

30873087
// If we are not allowed to turn during cast but have a focus target, face the target
30883088
if (!turnDisabled && noTurnDuringCast && target)
3089-
SetFacingToObject(target, false, Milliseconds(focusSpell->GetCastTime()), EVENT_SPELL_FOCUS);
3089+
SetFacingToObject(target, false, EVENT_SPELL_FOCUS, Milliseconds(focusSpell->GetCastTime()));
30903090

30913091
if (noTurnDuringCast)
30923092
AddUnitState(UNIT_STATE_FOCUSING);
@@ -3148,10 +3148,10 @@ void Creature::ReacquireSpellFocusTarget()
31483148
if (!_spellFocusInfo.Target.IsEmpty())
31493149
{
31503150
if (WorldObject const* objTarget = ObjectAccessor::GetWorldObject(*this, _spellFocusInfo.Target))
3151-
SetFacingToObject(objTarget, false, 1ms, EVENT_SPELL_FOCUS);
3151+
SetFacingToObject(objTarget, false, EVENT_SPELL_FOCUS);
31523152
}
31533153
else
3154-
SetFacingTo(_spellFocusInfo.Orientation.value(), false, 1ms, EVENT_SPELL_FOCUS);
3154+
SetFacingTo(_spellFocusInfo.Orientation.value(), false, EVENT_SPELL_FOCUS);
31553155
}
31563156
_spellFocusInfo.Delay = 0;
31573157
_spellFocusInfo.Target.Clear();

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13242,7 +13242,7 @@ void Unit::SetInFront(WorldObject const* target)
1324213242
SetOrientation(GetAbsoluteAngle(target));
1324313243
}
1324413244

13245-
void Unit::SetFacingTo(float ori, bool force/* = true*/, Milliseconds duration/* = 1s*/, uint32 id/* = EVENT_FACE*/)
13245+
void Unit::SetFacingTo(float ori, bool force/* = true*/, uint32 id/* = EVENT_FACE*/, Milliseconds duration/* = 0ms*/)
1324613246
{
1324713247
// do not face when already moving
1324813248
if (!force && (!IsStopped() || !movespline->Finalized() || GetMotionMaster()->GetCurrentMovementGeneratorPriority() == MOTION_PRIORITY_HIGHEST))
@@ -13251,7 +13251,7 @@ void Unit::SetFacingTo(float ori, bool force/* = true*/, Milliseconds duration/*
1325113251
GetMotionMaster()->MoveFace(ori, duration, id);
1325213252
}
1325313253

13254-
void Unit::SetFacingToObject(WorldObject const* object, bool force/* = true*/, Milliseconds duration/* = 1s*/, uint32 id/* = EVENT_FACE*/)
13254+
void Unit::SetFacingToObject(WorldObject const* object, bool force/* = true*/, uint32 id/* = EVENT_FACE*/, Milliseconds duration/* = 0ms*/)
1325513255
{
1325613256
// do not face when already moving
1325713257
if (!force && (!IsStopped() || !movespline->Finalized() || GetMotionMaster()->GetCurrentMovementGeneratorPriority() == MOTION_PRIORITY_HIGHEST))

src/server/game/Entities/Unit/Unit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,8 +1228,8 @@ class TC_GAME_API Unit : public WorldObject
12281228
bool SetHover(bool enable, bool updateAnimTier = true);
12291229

12301230
void SetInFront(WorldObject const* target);
1231-
void SetFacingTo(float const ori, bool force = true, Milliseconds duration = 1s, uint32 id = EVENT_FACE);
1232-
void SetFacingToObject(WorldObject const* object, bool force = true, Milliseconds duration = 1s, uint32 id = EVENT_FACE);
1231+
void SetFacingTo(float const ori, bool force = true, uint32 id = EVENT_FACE, Milliseconds duration = 0ms);
1232+
void SetFacingToObject(WorldObject const* object, bool force = true, uint32 id = EVENT_FACE, Milliseconds duration = 0ms);
12331233

12341234
void BuildHeartBeatMsg(WorldPacket* data) const;
12351235

src/server/scripts/Northrend/IcecrownCitadel/boss_the_lich_king.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ struct boss_the_lich_king : public BossAI
661661
me->SetReactState(REACT_PASSIVE);
662662
me->AttackStop();
663663
me->InterruptNonMeleeSpells(true);
664-
me->GetMotionMaster()->MovePoint(POINT_CENTER_2, CenterPosition);
664+
me->GetMotionMaster()->MovePoint(POINT_CENTER_3, CenterPosition);
665665
return;
666666
}
667667

@@ -786,7 +786,7 @@ struct boss_the_lich_king : public BossAI
786786

787787
void MovementInform(uint32 type, uint32 pointId) override
788788
{
789-
if (type != POINT_MOTION_TYPE)
789+
if (type != POINT_MOTION_TYPE && type != EFFECT_MOTION_TYPE)
790790
return;
791791

792792
switch (pointId)
@@ -804,7 +804,7 @@ struct boss_the_lich_king : public BossAI
804804
events.ScheduleEvent(EVENT_INTRO_TALK_1, 9s, 0, PHASE_INTRO);
805805
break;
806806
case POINT_CENTER_1:
807-
me->SetFacingTo(0.0f, true, 100ms, POINT_CENTER_2);
807+
me->SetFacingTo(0.0f, true, POINT_CENTER_2);
808808
break;
809809
case POINT_CENTER_2:
810810
Talk(SAY_LK_REMORSELESS_WINTER);
@@ -820,7 +820,7 @@ struct boss_the_lich_king : public BossAI
820820
events.ScheduleEvent(EVENT_SOUL_REAPER, 94s, 0, PHASE_TWO);
821821
break;
822822
case POINT_CENTER_3:
823-
me->SetFacingTo(0.0f, true, 100ms, POINT_CENTER_4);
823+
me->SetFacingTo(0.0f, true, POINT_CENTER_4);
824824
break;
825825
case POINT_CENTER_4:
826826
Talk(SAY_LK_REMORSELESS_WINTER);

0 commit comments

Comments
 (0)