Core/Units: Removed unused vehicle check

This commit is contained in:
Shauren
2011-07-08 18:16:28 +02:00
parent 34124f6ce9
commit d12194a006
2 changed files with 0 additions and 14 deletions
-13
View File
@@ -16808,19 +16808,6 @@ void Unit::JumpTo(WorldObject *obj, float speedZ)
GetMotionMaster()->MoveJump(x, y, z, speedXY, speedZ); GetMotionMaster()->MoveJump(x, y, z, speedXY, speedZ);
} }
bool Unit::CheckPlayerCondition(Player* pPlayer)
{
switch(GetEntry())
{
case 35644: // Argent Warhorse
case 36558: // Argent Battleworg
if (!pPlayer->HasItemOrGemWithIdEquipped(46106, 1)) // Check item Argent Lance
return false;
default:
return true;
}
}
bool Unit::HandleSpellClick(Unit* clicker, int8 seatId) bool Unit::HandleSpellClick(Unit* clicker, int8 seatId)
{ {
bool success = false; bool success = false;
-1
View File
@@ -2058,7 +2058,6 @@ class Unit : public WorldObject
bool m_ControlledByPlayer; bool m_ControlledByPlayer;
bool CheckPlayerCondition(Player* pPlayer);
bool HandleSpellClick(Unit* clicker, int8 seatId = -1); bool HandleSpellClick(Unit* clicker, int8 seatId = -1);
void EnterVehicle(Unit *base, int8 seatId = -1); void EnterVehicle(Unit *base, int8 seatId = -1);
void ExitVehicle(Position const* exitPosition = NULL); void ExitVehicle(Position const* exitPosition = NULL);