mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core/Spells: Remove duplicated code for Tiny Abomination in a Jar
This commit is contained in:
@@ -6904,25 +6904,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
break;
|
||||
}
|
||||
case 71406: // Tiny Abomination in a Jar
|
||||
{
|
||||
if (!pVictim || !pVictim->isAlive())
|
||||
return false;
|
||||
|
||||
CastSpell(this, 71432, true, NULL, triggeredByAura);
|
||||
|
||||
Aura const* dummy = GetAura(71432);
|
||||
if (!dummy || dummy->GetStackAmount() < 8)
|
||||
return false;
|
||||
|
||||
RemoveAurasDueToSpell(71432);
|
||||
triggered_spell_id = 71433; // default main hand attack
|
||||
// roll if offhand
|
||||
if (Player const* player = ToPlayer())
|
||||
if (player->GetWeaponForAttack(OFF_ATTACK, true) && urand(0, 1))
|
||||
triggered_spell_id = 71434;
|
||||
target = pVictim;
|
||||
break;
|
||||
}
|
||||
case 71545: // Tiny Abomination in a Jar (Heroic)
|
||||
{
|
||||
if (!pVictim || !pVictim->isAlive())
|
||||
@@ -6931,7 +6912,7 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger
|
||||
CastSpell(this, 71432, true, NULL, triggeredByAura);
|
||||
|
||||
Aura const* dummy = GetAura(71432);
|
||||
if (!dummy || dummy->GetStackAmount() < 7)
|
||||
if (!dummy || dummy->GetStackAmount() < (dummySpell->Id == 71406 ? 8 : 7))
|
||||
return false;
|
||||
|
||||
RemoveAurasDueToSpell(71432);
|
||||
|
||||
Reference in New Issue
Block a user