Core/Items: Implemented ITEM_BONUS_DISENCHANT_LOOT_ID

This commit is contained in:
Shauren
2024-09-24 14:40:23 +02:00
parent d3985a0460
commit 3238175a62
7 changed files with 101 additions and 23 deletions

View File

@@ -3433,7 +3433,7 @@ void Spell::EffectDisEnchant()
caster->UpdateCraftSkill(m_spellInfo);
itemTarget->m_loot.reset(new Loot(caster->GetMap(), itemTarget->GetGUID(), LOOT_DISENCHANTING, nullptr));
itemTarget->m_loot->FillLoot(ASSERT_NOTNULL(itemTarget->GetDisenchantLoot(caster))->ID, LootTemplates_Disenchant, caster, true);
itemTarget->m_loot->FillLoot(*itemTarget->GetDisenchantLootId(), LootTemplates_Disenchant, caster, true);
caster->SendLoot(*itemTarget->m_loot);
}