mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 13:09:50 -04:00
Core/Spells: More generic implementation of Combustion
Closes #60 & #78
This commit is contained in:
@@ -7908,17 +7908,11 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
|
||||
|
||||
//last charge and crit
|
||||
if (triggeredByAura->GetCharges() <= 1 && (procEx & PROC_EX_CRITICAL_HIT))
|
||||
{
|
||||
RemoveAurasDueToSpell(28682); //-> remove Combustion auras
|
||||
return true; // charge counting (will removed)
|
||||
}
|
||||
|
||||
// This function can be called twice during one spell hit (Area of Effect spells)
|
||||
// Make sure 28682 wasn't already removed by previous call
|
||||
if (HasAura(28682))
|
||||
this->CastSpell(this, 28682, true);
|
||||
CastSpell(this, 28682, true);
|
||||
|
||||
return false; // ordinary chrages will be removed during crit chance computations.
|
||||
return (procEx & PROC_EX_CRITICAL_HIT) ? true : false;
|
||||
}
|
||||
// Empowered Fire
|
||||
case 31656:
|
||||
|
||||
Reference in New Issue
Block a user