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:
_manuel_ committed 2009-12-31 17:59:56 -03:00
1 parent 6cd8d1286f
commit ebe7b29987
3 files changed
+22 -5

No files matched your search

+4 -1
View File
@@ -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);
}