mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10486] Use casterGUID check for delaying holder since possible stacking same spell from different casters
This commit is contained in:
parent
63cdd66bcb
commit
abbf4f5331
5 changed files with 10 additions and 7 deletions
|
|
@ -2846,7 +2846,7 @@ void Spell::cast(bool skipCheck)
|
|||
AddTriggeredSpell(60089);
|
||||
// Berserk (Bear Mangle part)
|
||||
else if (m_spellInfo->Id == 50334)
|
||||
AddTriggeredSpell(58923);
|
||||
AddTriggeredSpell(58923);
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_ROGUE:
|
||||
|
|
@ -6202,7 +6202,7 @@ void Spell::DelayedChannel()
|
|||
if ((*ihit).missCondition == SPELL_MISS_NONE)
|
||||
{
|
||||
if (Unit* unit = m_caster->GetObjectGuid() == ihit->targetGUID ? m_caster : ObjectAccessor::GetUnit(*m_caster, ihit->targetGUID))
|
||||
unit->DelaySpellAuraHolder(m_spellInfo->Id, delaytime);
|
||||
unit->DelaySpellAuraHolder(m_spellInfo->Id, delaytime, unit->GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue