1. Only attack to the droids. This will shatter Malak's armor.
2. If droids were dead, then attack to the capsules.
3. Continue this cycle until to the droids completely die.
4. Finally, when droid and capsules are completely die, attack to the Darth Malak, then he won't reach 30 and you will kill him.
Malak musn't reach "30". Malak can't reach 30 when you attacking droids. You will attack the droids, when the droids die you will attack to the pods. This cycle will continue until the droids and pods run out. When you stay with the last malak, you will kill it if you can.