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/GameObject.cpp

    r279 r283  
    3838#include "InstanceData.h" 
    3939#include "BattleGround.h" 
     40#include "Util.h" 
    4041#include "OutdoorPvPMgr.h" 
    41 #include "Util.h" 
     42#include "BattleGroundAV.h" 
    4243 
    4344GameObject::GameObject() : WorldObject() 
     
    755756        { 
    756757            if(LootTemplates_Gameobject.HaveQuestLootForPlayer(GetLootId(), pTarget)) 
     758            { 
     759                //TODO: fix this hack 
     760                //look for battlegroundAV for some objects which are only activated after mine gots captured by own team 
     761                if(GetEntry() == BG_AV_OBJECTID_MINE_N || GetEntry() == BG_AV_OBJECTID_MINE_S) 
     762                    if(BattleGround *bg = pTarget->GetBattleGround()) 
     763                        if(bg->GetTypeID() == BATTLEGROUND_AV && !(((BattleGroundAV*)bg)->PlayerCanDoMineQuest(GetEntry(),pTarget->GetTeam()))) 
     764                            return false; 
    757765                return true; 
     766            } 
    758767            break; 
    759768        }