mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-19 14:39:43 -04: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