Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Core/Units: Removed unused vehicle check

  • Loading branch information...
commit d12194a0068567edce3c0559fd848a2eded62bc7 1 parent 34124f6
@Shauren Shauren authored
View
13 src/server/game/Entities/Unit/Unit.cpp
@@ -16808,19 +16808,6 @@ void Unit::JumpTo(WorldObject *obj, float 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 success = false;
View
1  src/server/game/Entities/Unit/Unit.h
@@ -2058,7 +2058,6 @@ class Unit : public WorldObject
bool m_ControlledByPlayer;
- bool CheckPlayerCondition(Player* pPlayer);
bool HandleSpellClick(Unit* clicker, int8 seatId = -1);
void EnterVehicle(Unit *base, int8 seatId = -1);
void ExitVehicle(Position const* exitPosition = NULL);
Please sign in to comment.
Something went wrong with that request. Please try again.