Gsub uses patterns. Escape the special characters

This commit is contained in:
Flamanis
2022-12-18 07:29:43 -06:00
parent 171d3393d2
commit 2c8a2cedb8
+1 -1
View File
@@ -2127,7 +2127,7 @@
]]
if(isWOTLK) then
if(npcId == 15439) then
_detalhes.tabela_pets:Adicionar(alvo_serial:gsub("-15439-", "-15438-"), "Greater Fire Elemental", alvo_flags, who_serial, who_name, who_flags)
_detalhes.tabela_pets:Adicionar (alvo_serial:gsub("%-15439%-", "%-15438%-"), "Greater Fire Elemental", alvo_flags, who_serial, who_name, who_flags)
elseif (npcId == 15438) then
return
end