Hey,
The script has two systems running while you're traversing rooftops. The first system is an energy checker which restores run energy when you get low. It'll search your inventory for energy-restoring items and use those. The second is a health checker that restores HP when you get low. This'll search your inventory for edible items and use those, but will not consume the energy-restoring items (e.g., energy potions, etc). Summer pies unfortunately fall into the category of being both an energy restoring item and a health restoring item, which means the health restoring system won't recognise them.
Thanks for flagging this to me- I'll make note to allow these systems to play nicely together when a consumable item falls into both categories. For now, I recommend using a different type of food for your training.
Cheers,
Apa