mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9523] Stacking Auras from dual wild weapons.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
da30ea5ed8
commit
0ca87c50a6
4 changed files with 41 additions and 3 deletions
|
|
@ -3813,8 +3813,13 @@ bool Unit::AddAura(Aura *Aur)
|
|||
delete Aur;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check for coexisting Weapon-proced Auras
|
||||
if (Aur->isWeaponBuffCoexistableWith(aur2))
|
||||
continue;
|
||||
|
||||
// Carry over removed Aura's remaining damage if Aura still has ticks remaining
|
||||
else if (aur2->GetSpellProto()->AttributesEx4 & SPELL_ATTR_EX4_STACK_DOT_MODIFIER && aurName == SPELL_AURA_PERIODIC_DAMAGE && aur2->GetAuraDuration() > 0)
|
||||
if (aur2->GetSpellProto()->AttributesEx4 & SPELL_ATTR_EX4_STACK_DOT_MODIFIER && aurName == SPELL_AURA_PERIODIC_DAMAGE && aur2->GetAuraDuration() > 0)
|
||||
{
|
||||
int32 remainingTicks = aur2->GetAuraMaxTicks() - aur2->GetAuraTicks();
|
||||
int32 remainingDamage = aur2->GetModifier()->m_amount * remainingTicks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue