Update entities.js

Added swing parameter to attack function.