mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
*Update vehicle system. Make vehicle a seperate class from creature.
--HG-- branch : trunk
This commit is contained in:
@@ -515,8 +515,8 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
|
||||
}
|
||||
}
|
||||
|
||||
if(unit->isVehicle())
|
||||
_player->EnterVehicle((Vehicle*)unit);
|
||||
if(unit->IsVehicle())
|
||||
_player->EnterVehicle(unit);
|
||||
|
||||
unit->AI()->DoAction(EVENT_SPELLCLICK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user