When you take the Attack action on your turn, you can replace two of the attacks with a casting of one of your level 1 or level 2 Wizard spells that has a casting time of an action.
Improved War Magic
Raw data
{
"name": "Improved War Magic",
"page": 98,
"level": 18,
"__prop": "subclassFeature",
"header": 2,
"source": "XPHB",
"entries": [
"When you take the {@action Attack|XPHB} action on your turn, you can replace two of the attacks with a casting of one of your level 1 or level 2 Wizard spells that has a casting time of an action."
],
"className": "Fighter",
"classSource": "XPHB",
"subclassSource": "XPHB",
"subclassShortName": "Eldritch Knight"
}