mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
feature: add GetUnitFlags(), GetUnitFlagsTwo(), SetUnitFlags(flags), SetUnitFlagsTwo(flags), PlayerEvent OnApplyAura/OnRemoveAura (#137)
This commit is contained in:
@@ -690,3 +690,21 @@ void Eluna::OnGroupRollRewardItem(Player* player, Item* item, uint32 count, Roll
|
||||
Push(roll);
|
||||
CallAllFunctions(PlayerEventBindings, key);
|
||||
}
|
||||
|
||||
void Eluna::OnApplyAura(Player* player, Aura* aura, bool isNewAura)
|
||||
{
|
||||
START_HOOK(PLAYER_EVENT_ON_APPLY_AURA);
|
||||
Push(player);
|
||||
Push(aura);
|
||||
Push(isNewAura);
|
||||
CallAllFunctions(PlayerEventBindings, key);
|
||||
}
|
||||
|
||||
void Eluna::OnRemoveAura(Player* player, Aura* aura, bool isExpired)
|
||||
{
|
||||
START_HOOK(PLAYER_EVENT_ON_REMOVE_AURA);
|
||||
Push(player);
|
||||
Push(aura);
|
||||
Push(isExpired);
|
||||
CallAllFunctions(PlayerEventBindings, key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user