HeroRotation

HeroRotation

5M Downloads

[Warlock][Demonology] Pet Tracking failed on non-English clients

jo32 opened this issue · 1 comments

commented

In Events.lua:

        if (UnitPetGUID ~= UnitGUID("pet") and Event == "SPELL_SUMMON" and PetTypes[petName]) then
          local petTable = {
            ID = UnitPetGUID,
            name = petName,
            spawnTime = GetTime(),
            ImpCasts = 5,
            Duration = PetDurations[petName],
            despawnTime = GetTime() + tonumber(PetDurations[petName])
          }
					table.insert(HL.GuardiansTable.Pets,petTable)
			
					if petName == "Wild Imp" then
								HL.GuardiansTable.ImpCount = HL.GuardiansTable.ImpCount + 1
					elseif petName == "Felguard" then
						HL.GuardiansTable.FelguardDuration = PetDurations[petName]
					elseif petName == "Dreadstalker" then
						HL.GuardiansTable.DreadstalkerDuration = PetDurations[petName]
					elseif petName == "Demonic Tyrant" then
						HL.GuardiansTable.DemonicTyrantDuration = PetDurations[petName]
					end
        end

petName "Wild Imp" is "野生小鬼" in Chinese clients.

commented

Fixed in commit: 738af19