Core/Spells: Implemented target 124 TARGET_UNIT_TARGET_TAP_LIST

This commit is contained in:
Shauren authored and Ovahlord committed 2021-12-30 20:16:33 +01:00
1 parent 383e7c1315
commit a322e4eb37
3 files changed
+6 -2

No files matched your search

+4
View File
@@ -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;
}