Merge pull request #1552 from thibautbus/fix/pikachu-unhappy-gsub-crash

Fix a crash releasing your own caught Pikachu in Yellow
This commit is contained in:
bryanthaboi
2026-08-19 05:59:06 -04:00
committed by GitHub
2 changed files with 108 additions and 2 deletions
+2 -2
View File
@@ -180,8 +180,8 @@ local function release(game)
and mon.ot == game.save.player.name then
require("src.core.Sound").playCry(game.data, mon.species)
game.stack:push(TextBox.new(game,
(t._PikachuUnhappyText or Strings("%s looks\nunhappy about it!", name))
:gsub("{RAM:wNameBuffer}", name)))
((t._PikachuUnhappyText or Strings("%s looks\nunhappy about it!", name))
:gsub("{RAM:wNameBuffer}", name))))
return
end
game.stack:push(TextBox.new(game,