The fungus prevents the frogs from maintaining important salt levels, leading to a cardiac arrest.