If a person begins the prayer in a stronger condition and then becomes unable:
• standing may change to sitting;
• actual Ruku and Sujud may change to head gestures if necessary;
• lying may be used if even sitting becomes impossible.
The person continues the same prayer according to the new level of ability rather than restarting merely because the physical posture had to change.