mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Do not allow Seed of Corruption to damage affected target and trigger from other SoC proc.
Original patch by freeganja --HG-- branch : trunk
This commit is contained in:
@@ -2069,7 +2069,8 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
|
||||
unitList.remove(m_targets.getUnitTarget());
|
||||
|
||||
Trinity::RandomResizeList(unitList, m_spellValue->MaxAffectedTargets);
|
||||
}
|
||||
}else if(m_spellInfo->Id == 27285) // Seed of Corruption proc spell
|
||||
unitList.remove(m_targets.getUnitTarget());
|
||||
|
||||
for(std::list<Unit*>::iterator itr = unitList.begin(); itr != unitList.end(); ++itr)
|
||||
AddUnitTarget(*itr, i);
|
||||
|
||||
@@ -5467,6 +5467,8 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu
|
||||
// Seed of Corruption
|
||||
if (dummySpell->SpellFamilyFlags & 0x0000001000000000LL)
|
||||
{
|
||||
if(procSpell && procSpell->Id == 27285)
|
||||
return false;
|
||||
Modifier* mod = triggeredByAura->GetModifier();
|
||||
// if damage is more than need or target die from damage deal finish spell
|
||||
if( mod->m_amount <= damage || GetHealth() <= damage )
|
||||
|
||||
Reference in New Issue
Block a user