Nephites have victory over the Lamanites and boast in their own strength. They then swear by the Heavens and God that they will now go seek out war and avenge the deaths. That is definitely taking Gods name in vain and God declares, “vengeance is mine!”