Block battleground-flag from being picked up while player is on a vehicle

Fix by Scazzato - closes issue #1161

--HG--
branch : trunk
This commit is contained in:
click
2010-04-30 00:24:25 +02:00
parent f4dcdf9507
commit 2f21081904
+4
View File
@@ -1392,6 +1392,8 @@ void GameObject::Use(Unit* user)
BattleGround *bg = player->GetBattleGround(); BattleGround *bg = player->GetBattleGround();
if (!bg) if (!bg)
return; return;
if (player->GetVehicle())
return;
// BG flag click // BG flag click
// AB: // AB:
// 15001 // 15001
@@ -1417,6 +1419,8 @@ void GameObject::Use(Unit* user)
BattleGround *bg = player->GetBattleGround(); BattleGround *bg = player->GetBattleGround();
if (!bg) if (!bg)
return; return;
if( player->GetVehicle())
return;
// BG flag dropped // BG flag dropped
// WS: // WS:
// 179785 - Silverwing Flag // 179785 - Silverwing Flag