mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Implemented function CheckPlayerCondition, it will be used before the player enters in vehicles. Now vehicles Argent Warhorse and Argent Battleworg can't be used if the player dosen't have Argent Lance eqquiped.
--HG-- branch : trunk
This commit is contained in:
@@ -556,7 +556,10 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
|
||||
}
|
||||
|
||||
if(unit->IsVehicle())
|
||||
_player->EnterVehicle(unit);
|
||||
{
|
||||
if (unit->CheckPlayerCondition(_player))
|
||||
_player->EnterVehicle(unit);
|
||||
}
|
||||
|
||||
unit->AI()->DoAction(EVENT_SPELLCLICK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user