mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Refactoring and Bugfixes (#127)
* Replacing nil + compact! with delete, delete_at and delete_if wherever possible * Fixed Terrain Tag editor not setting the correct terrain * Fixed Text Cursor in Animation Editor not going right
This commit is contained in:
@@ -1167,8 +1167,7 @@ PokemonDebugMenuCommands.register("delete", {
|
||||
"effect" => proc { |pkmn, pkmnid, heldpoke, settingUpBattle, screen|
|
||||
if screen.pbConfirm(_INTL("Are you sure you want to delete this Pokémon?"))
|
||||
if screen.is_a?(PokemonPartyScreen)
|
||||
screen.party[pkmnid] = nil
|
||||
screen.party.compact!
|
||||
screen.party.delete_at(pkmnid)
|
||||
screen.pbHardRefresh
|
||||
elsif screen.is_a?(PokemonStorageScreen)
|
||||
screen.scene.pbRelease(pkmnid, heldpoke)
|
||||
|
||||
Reference in New Issue
Block a user