Fixed issue with attackdirection