mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-03 07:37:11 +01:00
@@ -2556,9 +2556,9 @@ void Spell::TargetInfo::DoDamageAndTriggers(Spell* spell)
|
||||
else if (spell->m_caster->GetTypeId() == TYPEID_GAMEOBJECT && spell->m_caster->ToGameObject()->AI())
|
||||
spell->m_caster->ToGameObject()->AI()->SpellHitTarget(_spellHitTarget, spell->m_spellInfo);
|
||||
|
||||
if (spell->_spellAura)
|
||||
if (HitAura)
|
||||
{
|
||||
if (AuraApplication* aurApp = spell->_spellAura->GetApplicationOfTarget(_spellHitTarget->GetGUID()))
|
||||
if (AuraApplication* aurApp = HitAura->GetApplicationOfTarget(_spellHitTarget->GetGUID()))
|
||||
{
|
||||
// only apply unapplied effects (for reapply case)
|
||||
uint8 effMask = EffectMask & aurApp->GetEffectsToApply();
|
||||
@@ -2820,7 +2820,10 @@ void Spell::DoSpellEffectHit(Unit* unit, uint8 effIndex, TargetInfo& hitInfo)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
hitInfo.HitAura = _spellAura;
|
||||
_spellAura->AddStaticApplication(unit, aura_effmask);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -676,6 +676,7 @@ class TC_GAME_API Spell
|
||||
SpellInfo const* AuraSpellInfo = nullptr;
|
||||
int32 AuraBasePoints[MAX_SPELL_EFFECTS] = { };
|
||||
bool Positive = true;
|
||||
UnitAura* HitAura = nullptr;
|
||||
|
||||
private:
|
||||
Unit* _spellHitTarget = nullptr; // changed for example by reflect
|
||||
|
||||
Reference in New Issue
Block a user