Original: It is capable of generating powerful electric shocks, which it uses for both hunting and self-defense.
Simplified: It is capable of generating powerful electric shocks. The animal uses these shocks both for hunting and to defend itself.