@Howaner You also need to make sure that during the explosion the wither is invulnerable. That's why I used a temporary variable in the original code.