mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
fix(Core/PlayerScript): Fix adding XP on quest completion and other overlooks. (#18728)
* fix(Core/PlayerScript): Fix adding XP on quest completion. * Fix other overlooks.
This commit is contained in:
committed by
GitHub
parent
0e1888ac92
commit
c796d9291e
@@ -79,4 +79,10 @@ inline bool ReturnValidBool(Optional<bool> ret, bool need = false)
|
||||
for (auto const& script : ScriptRegistry<scriptType>::EnabledHooks[hookType]) { if (action) return false; } \
|
||||
return true;
|
||||
|
||||
#define CALL_ENABLED_BOOLEAN_HOOKS_WITH_DEFAULT_FALSE(scriptType, hookType, action) \
|
||||
if (ScriptRegistry<scriptType>::EnabledHooks[hookType].empty()) \
|
||||
return false; \
|
||||
for (auto const& script : ScriptRegistry<scriptType>::EnabledHooks[hookType]) { if (action) return false; } \
|
||||
return false;
|
||||
|
||||
#endif // _SCRIPT_MGR_MACRO_H_
|
||||
|
||||
Reference in New Issue
Block a user