Core/Spells: Implemented target 124 TARGET_UNIT_TARGET_TAP_LIST
This commit is contained in:
1 parent
383e7c1315
commit
a322e4eb37
3 files changed
+6
-2
No files matched your search
@@ -1622,6 +1622,10 @@ void Spell::SelectImplicitCasterObjectTargets(SpellEffIndex effIndex, SpellImpli
|
||||
if (m_caster->GetTypeId() == TYPEID_UNIT && m_caster->IsVehicle())
|
||||
target = m_caster->GetVehicleKit()->GetPassenger(targetType.GetTarget() - TARGET_UNIT_PASSENGER_0);
|
||||
break;
|
||||
case TARGET_UNIT_TARGET_TAP_LIST:
|
||||
if (Creature* creatureCaster = m_caster->ToCreature())
|
||||
target = creatureCaster->GetLootRecipient();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user