Skip to content

Commit

Permalink
Core/Dungeon Finder: Fix teleport to dungeon and add missing code from
Browse files Browse the repository at this point in the history
  • Loading branch information
xurxogr committed Oct 23, 2012
1 parent 663db1c commit ca85c3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/server/game/Groups/Group.cpp
Expand Up @@ -104,12 +104,14 @@ bool Group::Create(Player* leader)
m_leaderGuid = leaderGuid;
m_leaderName = leader->GetName();

m_groupType = (isBGGroup() || isBFGroup()) ? GROUPTYPE_BGRAID : GROUPTYPE_NORMAL;
if (isBGGroup() || isBFGroup())
m_groupType = GROUPTYPE_BGRAID;

if (m_groupType & GROUPTYPE_RAID)
_initRaidSubGroupsCounter();

m_lootMethod = GROUP_LOOT;
if (!isLFGGroup())
m_lootMethod = GROUP_LOOT;
m_lootThreshold = ITEM_QUALITY_UNCOMMON;
m_looterGuid = leaderGuid;

Expand Down
2 changes: 2 additions & 0 deletions src/server/game/Scripting/ScriptLoader.cpp
Expand Up @@ -61,6 +61,7 @@ void AddSC_guild_commandscript();
void AddSC_honor_commandscript();
void AddSC_instance_commandscript();
void AddSC_learn_commandscript();
void AddSC_lfg_commandscript();
void AddSC_list_commandscript();
void AddSC_lookup_commandscript();
void AddSC_message_commandscript();
Expand Down Expand Up @@ -681,6 +682,7 @@ void AddCommandScripts()
AddSC_instance_commandscript();
AddSC_learn_commandscript();
AddSC_lookup_commandscript();
AddSC_lfg_commandscript();
AddSC_list_commandscript();
AddSC_message_commandscript();
AddSC_misc_commandscript();
Expand Down

0 comments on commit ca85c3b

Please sign in to comment.