Of course you should pray for deliverance. When you fall into sin, ask for forgiveness. When you see temptation coming pray for protection. And pray that you will not miss the growth and blessings that God has for you in the midst of a particularly painful trial.
Pray also for God to be glorified through the attack. Pray that He will be glorified as He keeps you strong. Pray that He will be glorified even in your failure.
And pray for others. Peter wrote, “Resist him, firm in your faith, knowing that the same kinds of suffering are being experienced by your brotherhood throughout the world.  Let spiritual attack remind you that others are under similar attack, and need your prayer.
When you find yourself under spiritual onslaught, pray.
PRAY, PRAY, PRAY!