Improved attack code, new animation type