diff --git a/Data/Scripts/004_Game classes/007_Game_Character.rb b/Data/Scripts/004_Game classes/007_Game_Character.rb index 262754c3a..2151168a7 100644 --- a/Data/Scripts/004_Game classes/007_Game_Character.rb +++ b/Data/Scripts/004_Game classes/007_Game_Character.rb @@ -484,9 +484,16 @@ class Game_Character when 36 then @direction_fix = false when 37 then @through = true when 38 then @through = false - when 39 then @always_on_top = true - when 40 then @always_on_top = false + when 39 + old_always_on_top = @always_on_top + @always_on_top = true + calculate_bush_depth if @always_on_top != old_always_on_top + when 40 + old_always_on_top = @always_on_top + @always_on_top = false + calculate_bush_depth if @always_on_top != old_always_on_top when 41 + old_tile_id = @tile_id @tile_id = 0 @character_name = command.parameters[0] @character_hue = command.parameters[1] @@ -499,6 +506,7 @@ class Game_Character @pattern = command.parameters[3] @original_pattern = @pattern end + calculate_bush_depth if @tile_id != old_tile_id when 42 then @opacity = command.parameters[0] when 43 then @blend_type = command.parameters[0] when 44 then pbSEPlay(command.parameters[0]) diff --git a/Data/Scripts/004_Game classes/008_Game_Event.rb b/Data/Scripts/004_Game classes/008_Game_Event.rb index 7f2496654..d899b7f3e 100644 --- a/Data/Scripts/004_Game classes/008_Game_Event.rb +++ b/Data/Scripts/004_Game classes/008_Game_Event.rb @@ -232,6 +232,7 @@ class Game_Event < Game_Character @direction_fix = @page.direction_fix @through = @page.through @always_on_top = @page.always_on_top + calculate_bush_depth @trigger = @page.trigger @list = @page.list @interpreter = nil