@Override protected boolean handleMovement(final RPEntity entity){
  if (rand.nextDouble() < probability) {
    doDamage(entity);
  }
  return true;
}

@ Override protected boolean handleMovement ( final RPEntity entity ) { if ( rand . nextDouble ( ) < probability ) { doDamage ( entity ) ; } return true ; }
apply actions done while moving .
