Core/Units: Removed unused vehicle check
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user