Core/Spells: Bring back workaround removed in cd7060c65a - it's needed for compatibility with some scripts.
This commit is contained in:
@@ -887,6 +887,10 @@ void Unit::CastSpell(SpellCastTargets const& targets, SpellInfo const* spellInfo
|
||||
if (Unit* owner = GetOwner())
|
||||
originalCaster=owner->GetGUID();
|
||||
|
||||
// TODO: this is a workaround - not needed anymore, but required for some scripts :(
|
||||
if (!originalCaster && triggeredByAura)
|
||||
originalCaster = triggeredByAura->GetCasterGUID();
|
||||
|
||||
Spell* spell = new Spell(this, spellInfo, triggerFlags, originalCaster);
|
||||
|
||||
if (value)
|
||||
|
||||
Reference in New Issue
Block a user