Pets summoned by trinkets now have the trinket name.
This commit is contained in:
+12
-3
@@ -1686,11 +1686,20 @@
|
||||
12/14 21:14:44.545 SPELL_SUMMON,Creature-0-4391-615-3107-15439-00001A8313,"Fire Elemental Totem",0x2112,0x0,Creature-0-4391-615-3107-15438-00001A8313,"Greater Fire Elemental",0x2112,0x0,32982,"Fire Elemental Totem",0x1
|
||||
]]
|
||||
|
||||
if npcId == 15438 then
|
||||
petContainer.AddPet(petSerial, "Greater Fire Elemental", petFlags, sourceSerial, sourceName, sourceFlags, spellId)
|
||||
if (isWOTLK or isCATA) then
|
||||
if (npcId == 15439) then
|
||||
petContainer.AddPet(petGuid:gsub("%-15439%-", "%-15438%-"), "Greater Fire Elemental", petFlags, sourceSerial, sourceName, sourceFlags, summonSpellId)
|
||||
elseif (npcId == 15438) then
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
petName = Details222.Pets.GetPetNameFromCustomSpells(petName, spellId, npcId)
|
||||
--send the summonSpellId to spellcache in order to identify if the pet is from an item, for instance: a trinket
|
||||
local newPetName = Details222.Pets.GetPetNameFromCustomSpells(petName, summonSpellId, npcId)
|
||||
if (newPetName ~= petName) then
|
||||
--print("Details! debug trinket summon| player:", sourceName, "| old pet name:", petName, "| new pet name:", newPetName, "| spellId:", summonSpellId)
|
||||
petName = newPetName
|
||||
end
|
||||
|
||||
--pet summon another pet
|
||||
local petTable = petCache[sourceSerial]
|
||||
|
||||
Reference in New Issue
Block a user