refactored attack in interactive entity