diff options
| author | Meji <alvaro.megias@outlook.com> | 2023-05-29 00:01:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-29 00:01:23 +0200 |
| commit | 06d0b16f158e8793860d9edd11b990f20b1d0dac (patch) | |
| tree | 0ecc06eb8e5b9ba20c615030be816ffc59705f52 /src/server/game/Spells/SpellEffects.cpp | |
| parent | 526b16fea41fb69a302fdebe8a727e175949f04b (diff) | |
Core/Creatures: Move creature difficulty specific data from creature_template table to creature_template_difficulty (#28931)
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
| -rw-r--r-- | src/server/game/Spells/SpellEffects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index d90f7cd7342..1e548610341 100644 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -2177,7 +2177,7 @@ void Spell::EffectPickPocket() creature->StartPickPocketRefillTimer(); creature->m_loot.reset(new Loot(creature->GetMap(), creature->GetGUID(), LOOT_PICKPOCKETING, nullptr)); - if (uint32 lootid = creature->GetCreatureTemplate()->pickpocketLootId) + if (uint32 lootid = creature->GetCreatureDifficulty()->PickPocketLootID) creature->m_loot->FillLoot(lootid, LootTemplates_Pickpocketing, player, true); // Generate extra money for pick pocket loot @@ -3725,13 +3725,13 @@ void Spell::EffectSkinning() Creature* creature = unitTarget->ToCreature(); int32 targetLevel = creature->GetLevelForTarget(m_caster); - uint32 skill = creature->GetCreatureTemplate()->GetRequiredLootSkill(); + uint32 skill = creature->GetCreatureDifficulty()->GetRequiredLootSkill(); creature->SetUnitFlag3(UNIT_FLAG3_ALREADY_SKINNED); creature->SetDynamicFlag(UNIT_DYNFLAG_LOOTABLE); Loot* loot = new Loot(creature->GetMap(), creature->GetGUID(), LOOT_SKINNING, nullptr); creature->m_personalLoot[player->GetGUID()].reset(loot); - loot->FillLoot(creature->GetCreatureTemplate()->SkinLootId, LootTemplates_Skinning, player, true); + loot->FillLoot(creature->GetCreatureDifficulty()->SkinLootID, LootTemplates_Skinning, player, true); player->SendLoot(*loot); if (!IsPartOfSkillLine(skill, m_spellInfo->Id)) |
