*Alterac Valley. By Bogie and Balrok. Note: some core contents are modified. Will fix them later. Some sql are disabled because of possible conflict with offical DB. Use them at your own risk.
--HG-- branch : trunk
This commit is contained in:
1 parent
b2ba78e57a
commit
fa667cf450
15 files changed
+3746
-179
No files matched your search
@@ -31,6 +31,8 @@
|
||||
#include "ObjectAccessor.h"
|
||||
#include "ScriptCalls.h"
|
||||
#include "Group.h"
|
||||
#include "BattleGround.h"
|
||||
#include "BattleGroundAV.h"
|
||||
|
||||
void WorldSession::HandleQuestgiverStatusQueryOpcode( WorldPacket & recv_data )
|
||||
{
|
||||
@@ -401,6 +403,12 @@ void WorldSession::HandleQuestComplete(WorldPacket& recv_data)
|
||||
Quest const *pQuest = objmgr.GetQuestTemplate(quest);
|
||||
if( pQuest )
|
||||
{
|
||||
// TODO: need a virtual function
|
||||
if(GetPlayer()->InBattleGround())
|
||||
if(BattleGround* bg = GetPlayer()->GetBattleGround())
|
||||
if(bg->GetTypeID() == BATTLEGROUND_AV)
|
||||
((BattleGroundAV*)bg)->HandleQuestComplete(quest, GetPlayer());
|
||||
|
||||
if( _player->GetQuestStatus( quest ) != QUEST_STATUS_COMPLETE )
|
||||
{
|
||||
if( pQuest->IsRepeatable() )
|
||||
|
||||
Reference in new issue
Block a user