Doesn't emptying the magazine into attacker #1 mean that one will be unarmed against attacker #2?
Ammo shortage is a logistics issue that should be resolved before the firefight. However, you fight with what you have not what you want.