mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 14:05:28 +00:00
fix(Core/Spells): Fix Lock and Load procs (#24795)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
This commit is contained in:
@@ -719,6 +719,7 @@ Spell::~Spell()
|
||||
void Spell::InitExplicitTargets(SpellCastTargets const& targets)
|
||||
{
|
||||
m_targets = targets;
|
||||
m_originalTargetGUID = targets.GetObjectTargetGUID();
|
||||
// this function tries to correct spell explicit targets for spell
|
||||
// client doesn't send explicit targets correctly sometimes - we need to fix such spells serverside
|
||||
// this also makes sure that we correctly send explicit targets to client (removes redundant data)
|
||||
@@ -7855,6 +7856,11 @@ void Spell::DelayedChannel()
|
||||
SendChannelUpdate(m_timer);
|
||||
}
|
||||
|
||||
Unit* Spell::GetOriginalTarget() const
|
||||
{
|
||||
return ObjectAccessor::GetUnit(*m_caster, m_originalTargetGUID);
|
||||
}
|
||||
|
||||
bool Spell::UpdatePointers()
|
||||
{
|
||||
if (m_originalCasterGUID == m_caster->GetGUID())
|
||||
|
||||
Reference in New Issue
Block a user