Core/Vehicles:
- Grab correct npc entry from npc_spellclick_spells in case of player vehicle. Fixes DB errors added in my previous changeset - Allow aura's with SPELL_AURA_CONTROL_VEHICLE to stack if there are enough free seats, even if spellIds are identical. - Fix a possible infinite loop. Thanks to manuel for spotting
This commit is contained in:
@@ -1251,7 +1251,7 @@ bool Creature::CreateFromProto(uint32 guidlow, uint32 Entry, uint32 vehId, uint3
|
||||
if (!vehId)
|
||||
vehId = cinfo->VehicleId;
|
||||
|
||||
if (vehId && !CreateVehicleKit(vehId))
|
||||
if (vehId && !CreateVehicleKit(vehId, Entry))
|
||||
vehId = 0;
|
||||
|
||||
Object::_Create(guidlow, Entry, vehId ? HIGHGUID_VEHICLE : HIGHGUID_UNIT);
|
||||
|
||||
Reference in New Issue
Block a user