mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/Entities: Vehicles should be able to be the source of map scripts
This commit is contained in:
@@ -343,14 +343,12 @@ void Map::ScriptsProcess()
|
||||
switch (GUID_HIPART(step.targetGUID))
|
||||
{
|
||||
case HIGHGUID_UNIT:
|
||||
case HIGHGUID_VEHICLE:
|
||||
target = HashMapHolder<Creature>::Find(step.targetGUID);
|
||||
break;
|
||||
case HIGHGUID_PET:
|
||||
target = HashMapHolder<Pet>::Find(step.targetGUID);
|
||||
break;
|
||||
//case HIGHGUID_VEHICLE:
|
||||
// target = HashMapHolder<Vehicle>::Find(step.targetGUID);
|
||||
// break;
|
||||
case HIGHGUID_PLAYER: // empty GUID case also
|
||||
target = HashMapHolder<Player>::Find(step.targetGUID);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user