diff options
author | click <none@none> | 2010-04-30 00:24:25 +0200 |
---|---|---|
committer | click <none@none> | 2010-04-30 00:24:25 +0200 |
commit | 2f21081904d7b5552285c37ac26078d80bfdb3f9 (patch) | |
tree | ee1f5393247cc906cf03c4231c431e51a7212d27 /src/game/GameObject.cpp | |
parent | f4dcdf9507fe6832755c140f762c604c3ba04085 (diff) |
Block battleground-flag from being picked up while player is on a vehicle
Fix by Scazzato - closes issue #1161
--HG--
branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r-- | src/game/GameObject.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp index ced9c495a7e..ea582b28e03 100644 --- a/src/game/GameObject.cpp +++ b/src/game/GameObject.cpp @@ -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 |