*Some work on vehicle.
--HG-- branch : trunk
This commit is contained in:
1 parent
c6d242c2b6
commit
e192d8f39b
11 files changed
+160
-12
No files matched your search
@@ -48,6 +48,7 @@
|
||||
#include "BattleGround.h"
|
||||
#include "Util.h"
|
||||
#include "TemporarySummon.h"
|
||||
#include "Vehicle.h"
|
||||
|
||||
#define SPELL_CHANNEL_UPDATE_INTERVAL (1 * IN_MILISECONDS)
|
||||
|
||||
@@ -1728,6 +1729,15 @@ void Spell::SetTargetMap(uint32 i, uint32 cur)
|
||||
case TARGET_UNIT_RAID_CASTER:
|
||||
pushType = PUSH_CASTER_CENTER;
|
||||
break;
|
||||
case TARGET_UNIT_VEHICLE:
|
||||
if(Vehicle *vehicle = m_caster->m_Vehicle)
|
||||
AddUnitTarget(vehicle, i);
|
||||
break;
|
||||
case TARGET_UNIT_PASSENGER:
|
||||
if(m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->isVehicle())
|
||||
if(Unit *unit = ((Vehicle*)m_caster)->GetPassenger(1)) // maybe not right
|
||||
AddUnitTarget(unit, i);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user