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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user