Complex sentence: When James volunteers to sacrifice himself, a blue beam begins to pull him to Heaven and when he taunts and flips Danny off, the beam vanishes.
Split into simpler sentences: When James volunteers to sacrifice himself, a blue beam begins to pull him to Heaven. However, when he taunts and flips Danny off, the beam vanishes.