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();
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user