mirror of
https://github.com/azerothcore/mod-ale
synced 2025-12-01 21:15:19 +08:00
revert: PLAYER_EVENT_ON_APPLY_AURA and PLAYER_EVENT_ON_REMOVE_AURA
This commit is contained in:
@@ -91,8 +91,6 @@ Eluna API for AC:
|
|||||||
- Added `RegisterPlayerEvent` `54` (`PLAYER_EVENT_ON_COMPLETE_QUEST`): https://github.com/azerothcore/mod-eluna/pull/90
|
- Added `RegisterPlayerEvent` `54` (`PLAYER_EVENT_ON_COMPLETE_QUEST`): https://github.com/azerothcore/mod-eluna/pull/90
|
||||||
- Added `RegisterPlayerEvent` `55` (`PLAYER_EVENT_ON_CAN_GROUP_INVITE`): https://github.com/azerothcore/mod-eluna/pull/100
|
- Added `RegisterPlayerEvent` `55` (`PLAYER_EVENT_ON_CAN_GROUP_INVITE`): https://github.com/azerothcore/mod-eluna/pull/100
|
||||||
- Added `RegisterPlayerEvent` `56` (`PLAYER_EVENT_ON_GROUP_ROLL_REWARD_ITEM`): https://github.com/azerothcore/mod-eluna/pull/119
|
- Added `RegisterPlayerEvent` `56` (`PLAYER_EVENT_ON_GROUP_ROLL_REWARD_ITEM`): https://github.com/azerothcore/mod-eluna/pull/119
|
||||||
- Added `RegisterPlayerEvent` `57` (`PLAYER_EVENT_ON_APPLY_AURA`): https://github.com/azerothcore/mod-eluna/pull/137
|
|
||||||
- Added `RegisterPlayerEvent` `58` (`PLAYER_EVENT_ON_REMOVE_AURA`): https://github.com/azerothcore/mod-eluna/pull/137
|
|
||||||
- Added `Player:GetMailCount()`: https://github.com/azerothcore/mod-eluna/pull/76
|
- Added `Player:GetMailCount()`: https://github.com/azerothcore/mod-eluna/pull/76
|
||||||
- Added `Player:GetXP()`: https://github.com/azerothcore/mod-eluna/pull/77
|
- Added `Player:GetXP()`: https://github.com/azerothcore/mod-eluna/pull/77
|
||||||
- Added `Player:GetAchievementCriteriaProgress()`: https://github.com/azerothcore/mod-eluna/pull/78
|
- Added `Player:GetAchievementCriteriaProgress()`: https://github.com/azerothcore/mod-eluna/pull/78
|
||||||
|
|||||||
@@ -801,16 +801,6 @@ public:
|
|||||||
{
|
{
|
||||||
return sEluna->OnCanGroupInvite(player, memberName);
|
return sEluna->OnCanGroupInvite(player, memberName);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnApplyAura(Player* player, Aura* aura, bool isNewAura)
|
|
||||||
{
|
|
||||||
return sEluna->OnApplyAura(player, aura, isNewAura);
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnRemoveAura(Player* player, Aura* aura, bool isExpired)
|
|
||||||
{
|
|
||||||
return sEluna->OnRemoveAura(player, aura, isExpired);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Eluna_ServerScript : public ServerScript
|
class Eluna_ServerScript : public ServerScript
|
||||||
|
|||||||
@@ -729,8 +729,6 @@ namespace LuaGlobalFunctions
|
|||||||
* PLAYER_EVENT_ON_COMPLETE_QUEST = 54, // (event, player, quest)
|
* PLAYER_EVENT_ON_COMPLETE_QUEST = 54, // (event, player, quest)
|
||||||
* PLAYER_EVENT_ON_CAN_GROUP_INVITE = 55, // (event, player, memberName) - Can return false to prevent inviting
|
* PLAYER_EVENT_ON_CAN_GROUP_INVITE = 55, // (event, player, memberName) - Can return false to prevent inviting
|
||||||
* PLAYER_EVENT_ON_GROUP_ROLL_REWARD_ITEM = 56, // (event, player, item, count, voteType, roll)
|
* PLAYER_EVENT_ON_GROUP_ROLL_REWARD_ITEM = 56, // (event, player, item, count, voteType, roll)
|
||||||
* PLAYER_EVENT_ON_APPLY_AURA = 57, // (event, player, aura, isNewAura)
|
|
||||||
* PLAYER_EVENT_ON_REMOVE_AURA = 58, // (event, player, aura, isExpired)
|
|
||||||
* };
|
* };
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -218,8 +218,6 @@ namespace Hooks
|
|||||||
PLAYER_EVENT_ON_COMPLETE_QUEST = 54, // (event, player, quest)
|
PLAYER_EVENT_ON_COMPLETE_QUEST = 54, // (event, player, quest)
|
||||||
PLAYER_EVENT_ON_CAN_GROUP_INVITE = 55, // (event, player, memberName) - Can return false to prevent inviting
|
PLAYER_EVENT_ON_CAN_GROUP_INVITE = 55, // (event, player, memberName) - Can return false to prevent inviting
|
||||||
PLAYER_EVENT_ON_GROUP_ROLL_REWARD_ITEM = 56, // (event, player, item, count, voteType, roll)
|
PLAYER_EVENT_ON_GROUP_ROLL_REWARD_ITEM = 56, // (event, player, item, count, voteType, roll)
|
||||||
PLAYER_EVENT_ON_APPLY_AURA = 57, // (event, player, aura, isNewAura)
|
|
||||||
PLAYER_EVENT_ON_REMOVE_AURA = 58, // (event, player, aura, isExpired)
|
|
||||||
|
|
||||||
PLAYER_EVENT_COUNT
|
PLAYER_EVENT_COUNT
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -489,8 +489,6 @@ public:
|
|||||||
bool OnCanJoinLfg(Player* player, uint8 roles, lfg::LfgDungeonSet& dungeons, const std::string& comment);
|
bool OnCanJoinLfg(Player* player, uint8 roles, lfg::LfgDungeonSet& dungeons, const std::string& comment);
|
||||||
bool OnCanGroupInvite(Player* player, std::string& memberName);
|
bool OnCanGroupInvite(Player* player, std::string& memberName);
|
||||||
void OnGroupRollRewardItem(Player* player, Item* item, uint32 count, RollVote voteType, Roll* roll);
|
void OnGroupRollRewardItem(Player* player, Item* item, uint32 count, RollVote voteType, Roll* roll);
|
||||||
void OnApplyAura(Player* player, Aura* aura, bool isNewAura);
|
|
||||||
void OnRemoveAura(Player* player, Aura* aura, bool isExpired);
|
|
||||||
|
|
||||||
#ifndef CLASSIC
|
#ifndef CLASSIC
|
||||||
#ifndef TBC
|
#ifndef TBC
|
||||||
|
|||||||
@@ -690,21 +690,3 @@ void Eluna::OnGroupRollRewardItem(Player* player, Item* item, uint32 count, Roll
|
|||||||
Push(roll);
|
Push(roll);
|
||||||
CallAllFunctions(PlayerEventBindings, key);
|
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