when using magic wrong sprite animations are used
When using magic the base player sprite does an attack animation and the weapon as well while the gloves/hair does the magic animation for example. Shields and weapons also use the attack animation therefore new frames for magic animation must be painted to support that magic animation. Maybe its better to don't use the magic animation all the way to avoid a broken look and tons of painting of new frames.