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:
Ovahlord
2022-03-29 21:46:16 +02:00
parent 2fefbe8a0c
commit 2443d48081
2 changed files with 0 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -403,7 +403,6 @@ struct CreatureSpellFocusData
Spell const* FocusSpell = nullptr;
ObjectGuid OriginalUnitTarget;
uint32 ReacquiringTargetDelay = 0;
float OriginalOrientation = 0.f;
public:
void Reset()