attack: Fix bug with infinite recursion in the Attack function