mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
[11385] Add support for static vehicle spawns
Signed-off-by: zergtmn <zerg@myisp.com>
This commit is contained in:
parent
75e1e7c3a3
commit
2835aa5f20
32 changed files with 115 additions and 331 deletions
|
|
@ -3385,7 +3385,7 @@ void Spell::update(uint32 difftime)
|
|||
for(TargetList::const_iterator ihit = m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit)
|
||||
{
|
||||
TargetInfo const& target = *ihit;
|
||||
if (!target.targetGUID.IsCreature())
|
||||
if (!target.targetGUID.IsCreatureOrVehicle())
|
||||
continue;
|
||||
|
||||
Unit* unit = m_caster->GetObjectGuid() == target.targetGUID ? m_caster : ObjectAccessor::GetUnit(*m_caster, target.targetGUID);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue