Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
- index 9f066a8..f0d0fc5 100644
- --- a/src/server/game/Spells/SpellEffects.cpp
- +++ b/src/server/game/Spells/SpellEffects.cpp
- @@ -3486,14 +3486,44 @@ void Spell::EffectCreateItem2(SpellEffIndex effIndex)
- if (m_caster->GetTypeId() != TYPEID_PLAYER)
- return;
- Player* player = (Player*)m_caster;
- + bool custom = false;
- uint32 item_id = m_spellInfo->EffectItemType[effIndex];
- + switch (m_spellInfo->Id)
- + {
- + case 78866: // Transmute: Living Elements
- + custom = true;
- + uint32 zoneid = m_caster->GetZoneId();
- + switch (zoneid)
- + {
- + case 5034: // Uldum
- + item_id = 52328; // Volatile Air
- + break;
- + case 5052: // Deepholm
- + item_id = 52327; // Volatile Earth
- + break;
- + case 4815: // Vashj'ir: Kelp'thar Forest
- + case 5144: // Vashj'ir: Shimmering Expanse
- + case 5145: // Vashj'ir: Abyssal Depths
- + case 5146: // Vashj'ir
- + item_id = 52326; // Volatile Water
- + break;
- + case 616: // Mount Hyjal
- + item_id = 52325; // Volatile Fire
- + break;
- + default: // All other zones
- + item_id = 52325 + urand(0, 3); // Random item_id
- + break;
- + }
- + break;
- + }
- +
- if (item_id)
- DoCreateItem(effIndex, item_id);
- // special case: fake item replaced by generate using spell_loot_template
- - if (IsLootCraftingSpell(m_spellInfo))
- + if (IsLootCraftingSpell(m_spellInfo) && !custom)
- {
- if (item_id)
- {
Advertisement
Add Comment
Please, Sign In to add comment