From 1ead0a76f585068c9e01c2ad611a61c6e9c6f136 Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Tue, 21 Mar 2023 18:28:06 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20Beak=20Blast's=20burn=20affecting=20the?= =?UTF-8?q?=20wrong=20Pok=C3=A9mon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../010_Battler_UseMoveTriggerEffects.rb | 4 ++-- .../003_Debug menus/002_Debug_MenuCommands.rb | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Data/Scripts/011_Battle/002_Battler/010_Battler_UseMoveTriggerEffects.rb b/Data/Scripts/011_Battle/002_Battler/010_Battler_UseMoveTriggerEffects.rb index 259a6196e..a477720cc 100644 --- a/Data/Scripts/011_Battle/002_Battler/010_Battler_UseMoveTriggerEffects.rb +++ b/Data/Scripts/011_Battle/002_Battler/010_Battler_UseMoveTriggerEffects.rb @@ -54,8 +54,8 @@ class Battle::Battler if target.effects[PBEffects::BeakBlast] PBDebug.log("[Lingering effect] #{target.pbThis}'s Beak Blast") if move.pbContactMove?(user) && user.affectedByContactEffect? && - target.pbCanBurn?(user, false, self) - target.pbBurn(user) + user.pbCanBurn?(target, false, self) + user.pbBurn(target) end end # Shell Trap (make the trapper move next if the trap was triggered) diff --git a/Data/Scripts/020_Debug/003_Debug menus/002_Debug_MenuCommands.rb b/Data/Scripts/020_Debug/003_Debug menus/002_Debug_MenuCommands.rb index 59fb549f6..562065a08 100644 --- a/Data/Scripts/020_Debug/003_Debug menus/002_Debug_MenuCommands.rb +++ b/Data/Scripts/020_Debug/003_Debug menus/002_Debug_MenuCommands.rb @@ -1086,15 +1086,15 @@ MenuHandlers.add(:debug_menu, :fix_invalid_tiles, { #=============================================================================== # Other options #=============================================================================== -MenuHandlers.add(:debug_menu, :other_menu, { - "name" => _INTL("File Management Options..."), +MenuHandlers.add(:debug_menu, :files_menu, { + "name" => _INTL("Files Options..."), "parent" => :main, "description" => _INTL("Compile, generate PBS files, translations, Mystery Gifts, etc.") }) MenuHandlers.add(:debug_menu, :compile_data, { "name" => _INTL("Compile Data"), - "parent" => :other_menu, + "parent" => :files_menu, "description" => _INTL("Fully compile all data."), "effect" => proc { msgwindow = pbCreateMessageWindow @@ -1106,7 +1106,7 @@ MenuHandlers.add(:debug_menu, :compile_data, { MenuHandlers.add(:debug_menu, :create_pbs_files, { "name" => _INTL("Create PBS File(s)"), - "parent" => :other_menu, + "parent" => :files_menu, "description" => _INTL("Choose one or all PBS files and create it."), "effect" => proc { cmd = 0 @@ -1170,7 +1170,7 @@ MenuHandlers.add(:debug_menu, :create_pbs_files, { MenuHandlers.add(:debug_menu, :rename_files, { "name" => _INTL("Rename Outdated Files"), - "parent" => :other_menu, + "parent" => :files_menu, "description" => _INTL("Check for files with outdated names and rename/move them. Can alter map data."), "effect" => proc { if pbConfirmMessage(_INTL("Are you sure you want to automatically rename outdated files?")) @@ -1182,7 +1182,7 @@ MenuHandlers.add(:debug_menu, :rename_files, { MenuHandlers.add(:debug_menu, :extract_text, { "name" => _INTL("Extract Text For Translation"), - "parent" => :other_menu, + "parent" => :files_menu, "description" => _INTL("Extract all text in the game to text files for translating."), "effect" => proc { if Settings::LANGUAGES.length == 0 @@ -1216,7 +1216,7 @@ MenuHandlers.add(:debug_menu, :extract_text, { MenuHandlers.add(:debug_menu, :compile_text, { "name" => _INTL("Compile Translated Text"), - "parent" => :other_menu, + "parent" => :files_menu, "description" => _INTL("Import text files and convert them into a language file."), "effect" => proc { # Find all folders with a particular naming convention @@ -1238,7 +1238,7 @@ MenuHandlers.add(:debug_menu, :compile_text, { MenuHandlers.add(:debug_menu, :mystery_gift, { "name" => _INTL("Manage Mystery Gifts"), - "parent" => :other_menu, + "parent" => :files_menu, "description" => _INTL("Edit and enable/disable Mystery Gifts."), "effect" => proc { pbManageMysteryGifts @@ -1247,7 +1247,7 @@ MenuHandlers.add(:debug_menu, :mystery_gift, { MenuHandlers.add(:debug_menu, :reload_system_cache, { "name" => _INTL("Reload System Cache"), - "parent" => :other_menu, + "parent" => :files_menu, "description" => _INTL("Refreshes the system's file cache. Use if you change a file while playing."), "effect" => proc { System.reload_cache