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:
1 parent
6cd8d1286f
commit
ebe7b29987
3 files changed
+22
-5
No files matched your search
@@ -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