Lengthen Gladius (5e Spell)
From D&D Wiki
|Casting time:||1 bonus action|
|Components:||S,M (a Shortsword)|
Back in the Ancient Roman times, they would usually fight with a spear, sword, and shield. Some got bored with the constant switching weapons and came up with a life hack: using magic to elongate their swords into spears.
One nonmagical shortsword you are holding transmutes into a long javelin. This weapon has the normal statistics of a javelin with the addition of the reach property. It reverts back to a shortsword if you drop it, after you make a ranged attack with it, or you end the effect with a bonus action.