From 2c8a2cedb8f93aafb0a79722592f63630be94b1e Mon Sep 17 00:00:00 2001 From: Flamanis Date: Sun, 18 Dec 2022 07:29:43 -0600 Subject: [PATCH] Gsub uses patterns. Escape the special characters --- core/parser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/parser.lua b/core/parser.lua index b2c7ff9f..1f658437 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -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