[10486] Use casterGUID check for delaying holder since possible stacking same spell from different casters

This commit is contained in:
Laise 2010-09-15 11:35:33 +02:00
parent 63cdd66bcb
commit abbf4f5331
5 changed files with 10 additions and 7 deletions

View file

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