mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/Spells: Fix Culling the Herd (and a personal thanks to Xanadu for being patient on explaining the procsystem properly)
Closes issue 4533 --HG-- branch : trunk
This commit is contained in:
@@ -8831,6 +8831,17 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Culling the Herd
|
||||
case 70893:
|
||||
{
|
||||
// check if we're doing a critical hit
|
||||
if (!(procSpell->SpellFamilyFlags[1] & 0x10000000) && (procEx != PROC_EX_CRITICAL_HIT) )
|
||||
return false;
|
||||
// check if we're procced by Claw, Bite or Smack (need to use the spell icon ID to detect it)
|
||||
if (!(procSpell->SpellIconID == 262 || procSpell->SpellIconID == 1680 || procSpell->SpellIconID == 473 ))
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
// Deathbringer Saurfang - Blood Link
|
||||
case 72202:
|
||||
target = FindNearestCreature(37813, 75.0f); // NPC_DEATHBRINGER_SAURFANG = 37813
|
||||
|
||||
@@ -3896,6 +3896,11 @@ void SpellMgr::LoadSpellCustomAttr()
|
||||
spellInfo->EffectImplicitTargetB[0] = TARGET_UNIT_PET;
|
||||
count++;
|
||||
break;
|
||||
case 70893: // Culling The Herd
|
||||
spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_CASTER;
|
||||
spellInfo->EffectImplicitTargetB[0] = TARGET_UNIT_MASTER;
|
||||
count++;
|
||||
break;
|
||||
case 71413: // Green Ooze Summon
|
||||
case 71414: // Orange Ooze Summon
|
||||
spellInfo->EffectImplicitTargetA[0] = TARGET_DEST_DEST;
|
||||
|
||||
Reference in New Issue
Block a user