mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Auras: Use existing aura object on aura reapply/stack increase instead of creating a new one.
You can hook on reapply/stack event by checking for AURA_EFFECT_HANDLE_REAPPLY aura handler mode, AURA_EFFECT_HANDLE_REAL is now not triggered on aura refresh/stack.
This commit is contained in:
@@ -793,14 +793,14 @@ uint8 AuraScript::GetStackAmount() const
|
||||
return m_aura->GetStackAmount();
|
||||
}
|
||||
|
||||
void AuraScript::SetStackAmount(uint8 num, bool applied)
|
||||
void AuraScript::SetStackAmount(uint8 num)
|
||||
{
|
||||
m_aura->SetStackAmount(num, applied);
|
||||
m_aura->SetStackAmount(num);
|
||||
}
|
||||
|
||||
bool AuraScript::ModStackAmount(int32 num)
|
||||
void AuraScript::ModStackAmount(int32 num, AuraRemoveMode removeMode)
|
||||
{
|
||||
return m_aura->ModStackAmount(num);
|
||||
return m_aura->ModStackAmount(num, removeMode);
|
||||
}
|
||||
|
||||
bool AuraScript::IsPassive() const
|
||||
|
||||
Reference in New Issue
Block a user