mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
Fix LFG last player disband party (#574)
* [CORE/LFG] now last player disband party when left dungeon
This commit is contained in:
@@ -126,10 +126,9 @@ class ScriptRegistry
|
|||||||
|
|
||||||
// Utility macros for looping over scripts.
|
// Utility macros for looping over scripts.
|
||||||
#define FOR_SCRIPTS(T, C, E) \
|
#define FOR_SCRIPTS(T, C, E) \
|
||||||
if (SCR_REG_LST(T).empty()) \
|
if (!SCR_REG_LST(T).empty()) \
|
||||||
return; \
|
for (SCR_REG_ITR(T) C = SCR_REG_LST(T).begin(); \
|
||||||
for (SCR_REG_ITR(T) C = SCR_REG_LST(T).begin(); \
|
C != SCR_REG_LST(T).end(); ++C)
|
||||||
C != SCR_REG_LST(T).end(); ++C)
|
|
||||||
#define FOR_SCRIPTS_RET(T, C, E, R) \
|
#define FOR_SCRIPTS_RET(T, C, E, R) \
|
||||||
if (SCR_REG_LST(T).empty()) \
|
if (SCR_REG_LST(T).empty()) \
|
||||||
return R; \
|
return R; \
|
||||||
|
|||||||
@@ -1290,13 +1290,15 @@ class ScriptMgr
|
|||||||
|
|
||||||
public: /* AllCreatureScript */
|
public: /* AllCreatureScript */
|
||||||
|
|
||||||
void OnAllCreatureUpdate(Creature* creature, uint32 diff);
|
//listener function (OnAllCreatureUpdate) is called by OnCreatureUpdate
|
||||||
|
//void OnAllCreatureUpdate(Creature* creature, uint32 diff);
|
||||||
void Creature_SelectLevel(const CreatureTemplate *cinfo, Creature* creature);
|
void Creature_SelectLevel(const CreatureTemplate *cinfo, Creature* creature);
|
||||||
|
|
||||||
public: /* AllMapScript */
|
public: /* AllMapScript */
|
||||||
|
|
||||||
void OnPlayerEnterMapAll(Map* map, Player* player);
|
//listener functions are called by OnPlayerEnterMap and OnPlayerLeaveMap
|
||||||
void OnPlayerLeaveMapAll(Map* map, Player* player);
|
//void OnPlayerEnterAll(Map* map, Player* player);
|
||||||
|
//void OnPlayerLeaveAll(Map* map, Player* player);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user