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();
if (!bg)
return;
if (player->GetVehicle())
return;
// BG flag click
// AB:
// 15001
@@ -1417,6 +1419,8 @@ void GameObject::Use(Unit* user)
BattleGround *bg = player->GetBattleGround();
if (!bg)
return;
if( player->GetVehicle())
return;
// BG flag dropped
// WS:
// 179785 - Silverwing Flag