mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 08:59:11 +01:00
Core/Creatures: no longer restore stored orientation values after a spell focus expires since there is no evidence, that this is ever being used on retail
This commit is contained in:
@@ -3160,7 +3160,6 @@ void Creature::SetSpellFocus(Spell const* focusSpell, WorldObject const* target)
|
||||
if (!_spellFocusInfo.ReacquiringTargetDelay)
|
||||
{ // only overwrite these fields if we aren't transitioning from one spell focus to another
|
||||
_spellFocusInfo.OriginalUnitTarget = GetGuidValue(UNIT_FIELD_TARGET);
|
||||
_spellFocusInfo.OriginalOrientation = GetOrientation();
|
||||
}
|
||||
else // don't automatically reacquire target for the previous spellcast
|
||||
_spellFocusInfo.ReacquiringTargetDelay = 0;
|
||||
@@ -3265,8 +3264,6 @@ void Creature::ReacquireSpellFocusTarget()
|
||||
if (WorldObject const* objTarget = ObjectAccessor::GetWorldObject(*this, _spellFocusInfo.OriginalUnitTarget))
|
||||
SetFacingToObject(objTarget, false);
|
||||
}
|
||||
else
|
||||
SetFacingTo(_spellFocusInfo.OriginalOrientation, false);
|
||||
}
|
||||
_spellFocusInfo.ReacquiringTargetDelay = 0;
|
||||
}
|
||||
|
||||
@@ -403,7 +403,6 @@ struct CreatureSpellFocusData
|
||||
Spell const* FocusSpell = nullptr;
|
||||
ObjectGuid OriginalUnitTarget;
|
||||
uint32 ReacquiringTargetDelay = 0;
|
||||
float OriginalOrientation = 0.f;
|
||||
|
||||
public:
|
||||
void Reset()
|
||||
|
||||
Reference in New Issue
Block a user