Show
Ignore:
Timestamp:
11/22/08 01:55:16 (17 years ago)
Author:
yumileroy
Message:

*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.

Original author: megamage
Date: 2008-11-21 19:45:49-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/QuestHandler.cpp

    r207 r283  
    3232#include "ScriptCalls.h" 
    3333#include "Group.h" 
     34#include "BattleGround.h" 
     35#include "BattleGroundAV.h" 
    3436 
    3537void WorldSession::HandleQuestgiverStatusQueryOpcode( WorldPacket & recv_data ) 
     
    402404    if( pQuest ) 
    403405    { 
     406        // TODO: need a virtual function 
     407        if(GetPlayer()->InBattleGround()) 
     408            if(BattleGround* bg = GetPlayer()->GetBattleGround()) 
     409                if(bg->GetTypeID() == BATTLEGROUND_AV) 
     410                    ((BattleGroundAV*)bg)->HandleQuestComplete(quest, GetPlayer()); 
     411 
    404412        if( _player->GetQuestStatus( quest ) != QUEST_STATUS_COMPLETE ) 
    405413        {