Core/Dungeon Finder: Add lfg state to know if a player is using lfg or lfr

- Do not allow to join battleground if using lfg/lfr

Closes issue 4189

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-26 13:59:51 +02:00
parent 07fc33a083
commit ef16cc9109
4 changed files with 37 additions and 3 deletions
+3
View File
@@ -2265,6 +2265,9 @@ class Player : public Unit, public GridObject<Player>
void SetLfgRoles(uint8 _roles) { m_LookingForGroup.roles = _roles; }
bool GetLfgUpdate() { return m_LookingForGroup.update; }
void SetLfgUpdate(bool update) { m_LookingForGroup.update = update; }
LfgState GetLfgState() { return m_LookingForGroup.state; }
void SetLfgState(LfgState state) { m_LookingForGroup.state = state; }
bool isUsingLfg() { return GetLfgState() != LFG_STATE_NONE; }
// Temporarily removed pet cache
uint32 GetTemporaryUnsummonedPetNumber() const { return m_temporaryUnsummonedPetNumber; }