Changeset 283 for trunk/src/game/GameObject.cpp
- Timestamp:
- 11/22/08 01:55:16 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/GameObject.cpp
r279 r283 38 38 #include "InstanceData.h" 39 39 #include "BattleGround.h" 40 #include "Util.h" 40 41 #include "OutdoorPvPMgr.h" 41 #include " Util.h"42 #include "BattleGroundAV.h" 42 43 43 44 GameObject::GameObject() : WorldObject() … … 755 756 { 756 757 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; 757 765 return true; 766 } 758 767 break; 759 768 }