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:
@@ -606,8 +606,8 @@ class AuraScript : public _SpellScript
|
||||
|
||||
// stack amount manipulation
|
||||
uint8 GetStackAmount() const;
|
||||
void SetStackAmount(uint8 num, bool applied = true);
|
||||
bool ModStackAmount(int32 num);
|
||||
void SetStackAmount(uint8 num);
|
||||
void ModStackAmount(int32 num, AuraRemoveMode removeMode = AURA_REMOVE_BY_DEFAULT);
|
||||
|
||||
// passive - "working in background", not saved, not removed by immonities, not seen by player
|
||||
bool IsPassive() const;
|
||||
|
||||
Reference in New Issue
Block a user